This commit is contained in:
2026-03-06 14:24:18 +01:00
parent cdb0bf7254
commit a3f15c30e6

View File

@@ -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')