Skip to content

Commit e2a0d25

Browse files
committed
Merge PR #4241 into 19.0
Signed-off-by rousseldenis
2 parents 2e1edbd + 7c7cae4 commit e2a0d25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sale_global_discount/models/sale_order.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ def _compute_amounts(self):
100100
res = super()._compute_amounts()
101101
for order in self:
102102
if not order.global_discount_ids:
103+
order.amount_untaxed_before_global_discounts = order.amount_untaxed
104+
order.amount_total_before_global_discounts = order.amount_total
105+
order.amount_global_discount = 0.0
103106
continue
104107
order._check_global_discounts_sanity()
105108
amount_untaxed_before_global_discounts = order.amount_untaxed

0 commit comments

Comments
 (0)