This commit is contained in:
2026-06-13 12:10:14 +02:00
parent e19dcafcb7
commit a0363fa9c7
2 changed files with 2 additions and 3 deletions

View File

@@ -1995,7 +1995,7 @@ class Line(metaclass=PoolMeta):
return default()
@fields.depends('product', 'unit', 'purchase',
'_parent_purchase.company', '_parent_purchase.company.party')
'_parent_purchase.company')
def on_change_product(self):
previous_unit = self.unit
parent_on_change = getattr(super(), 'on_change_product', None)

View File

@@ -1610,8 +1610,7 @@ class SaleLine(metaclass=PoolMeta):
if default:
return default()
@fields.depends('product', 'unit', 'sale',
'_parent_sale.company', '_parent_sale.company.party')
@fields.depends('product', 'unit', 'sale', '_parent_sale.company')
def on_change_product(self):
previous_unit = self.unit
parent_on_change = getattr(super(), 'on_change_product', None)