From a3f15c30e6ed541bf59803075d0bf0f82c9428bd Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Fri, 6 Mar 2026 14:24:18 +0100 Subject: [PATCH] 06.03.26 --- modules/purchase_trade/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/purchase_trade/purchase.py b/modules/purchase_trade/purchase.py index de81f5b..4f9cc46 100755 --- a/modules/purchase_trade/purchase.py +++ b/modules/purchase_trade/purchase.py @@ -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')