05.03.26
This commit is contained in:
@@ -497,6 +497,16 @@ class Line(metaclass=PoolMeta):
|
||||
help="Add attributes to the variant."
|
||||
)
|
||||
|
||||
attribute_set = fields.Function(
|
||||
fields.Many2One('product.attribute.set', "Attribute Set"),
|
||||
'on_change_with_attribute_set'
|
||||
)
|
||||
|
||||
@fields.depends('product')
|
||||
def on_change_with_attribute_set(self, name=None):
|
||||
if self.product and self.product.template:
|
||||
return self.product.template.attribute_set.id
|
||||
|
||||
attributes_name = fields.Function(
|
||||
fields.Char("Attributes Name"),
|
||||
'on_change_with_attributes_name'
|
||||
|
||||
Reference in New Issue
Block a user