Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sale_global_discount/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ def _compute_amounts(self):
res = super()._compute_amounts()
for order in self:
if not order.global_discount_ids:
order.amount_untaxed_before_global_discounts = order.amount_untaxed
order.amount_total_before_global_discounts = order.amount_total
order.amount_global_discount = 0.0
continue
order._check_global_discounts_sanity()
amount_untaxed_before_global_discounts = order.amount_untaxed
Expand Down
Loading