05.03.26
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user