06.03.26
This commit is contained in:
@@ -509,7 +509,7 @@ class Line(metaclass=PoolMeta):
|
||||
|
||||
@fields.depends('product')
|
||||
def on_change_with_attribute_set(self, name=None):
|
||||
if self.product and self.product.template:
|
||||
if self.product and self.product.template and self.product.template.attribute_set:
|
||||
return self.product.template.attribute_set.id
|
||||
|
||||
@fields.depends('product', 'attributes')
|
||||
|
||||
Reference in New Issue
Block a user