main #7
@@ -509,7 +509,7 @@ class Line(metaclass=PoolMeta):
|
|||||||
|
|
||||||
@fields.depends('product')
|
@fields.depends('product')
|
||||||
def on_change_with_attribute_set(self, name=None):
|
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
|
return self.product.template.attribute_set.id
|
||||||
|
|
||||||
@fields.depends('product', 'attributes')
|
@fields.depends('product', 'attributes')
|
||||||
|
|||||||
Reference in New Issue
Block a user