2020-01-20 16:21:50 +01:00
|
|
|
diff --git a/tax.py b/tax.py
|
2023-01-04 16:05:47 +01:00
|
|
|
--- a/tryton/modules/account/tax.py Thu Gen 20 10:25:13 2020 +0200
|
|
|
|
+++ b/tryton/modules/account/tax.py Thu Gen 20 10:32:48 2020 +0200
|
2020-01-20 16:21:50 +01:00
|
|
|
@@ -906,7 +906,8 @@ class Tax(sequence_ordered(), ModelSQL, ModelView, DeactivableMixin):
|
|
|
|
if len(tax.childs):
|
|
|
|
values.extend(
|
|
|
|
cls._unit_compute(tax.childs, price_unit, date))
|
|
|
|
- if tax.update_unit_price:
|
|
|
|
+ if (tax.update_unit_price or
|
|
|
|
+ tax.parent and tax.parent.update_unit_price):
|
|
|
|
for value in values:
|
|
|
|
unit_price_variation += value['amount']
|
|
|
|
res.extend(values)
|