Add missing depends on rate and factor to calculate unit price from second unit of blanket line

Closes #13932
This commit is contained in:
Maxime Richez
2025-03-21 10:50:23 +01:00
parent 34686ae187
commit b1bd50209a
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -311,7 +311,8 @@ class LineBlanketAgreement(metaclass=PoolMeta):
@fields.depends(
'blanket_agreement_line', '_parent_blanket_agreement_line.unit',
'_parent_blanket_agreement_line.unit_price', 'unit', 'secondary_unit')
'_parent_blanket_agreement_line.unit_price', 'unit', 'secondary_unit',
'secondary_uom_rate', 'secondary_uom_factor')
def compute_unit_price(self):
pool = Pool()
Uom = pool.get('product.uom')
+2 -1
View File
@@ -260,7 +260,8 @@ class LineBlanketAgreement(metaclass=PoolMeta):
@fields.depends(
'blanket_agreement_line', '_parent_blanket_agreement_line.unit',
'_parent_blanket_agreement_line.unit_price', 'unit', 'secondary_unit')
'_parent_blanket_agreement_line.unit_price', 'unit', 'secondary_unit',
'secondary_uom_rate', 'secondary_uom_factor')
def compute_unit_price(self):
pool = Pool()
Uom = pool.get('product.uom')