This commit is contained in:
2026-03-05 19:49:16 +01:00
parent 843ade6f3d
commit cdb0bf7254
2 changed files with 2 additions and 14 deletions

View File

@@ -16,8 +16,8 @@ this repository contains the full copyright notices and license terms. -->
<label name="product_supplier"/>
<field name="product_supplier"/>
<newline/>
<label name="att_desc"/>
<field name="att_desc"/>
<label name="attributes_name"/>
<field name="attributes_name"/>
<label name="concentration"/>
<field name="concentration"/>
<newline/>

View File

@@ -507,18 +507,6 @@ class Line(metaclass=PoolMeta):
'on_change_with_attributes_name'
)
att_desc = fields.Function(fields.Char("Attributes"),'get_attributes')
def get_attributes(self, name):
if not self.attributes:
return ''
parts = []
for attr_id, value in self.attributes.items():
parts.append(f"{attr_id}: {value}")
return ', '.join(parts)
@fields.depends('product')
def on_change_with_attribute_set(self, name=None):
if self.product and self.product.template: