05.03.26
This commit is contained in:
@@ -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/>
|
||||
|
||||
@@ -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