diff --git a/addons/sale_coupon/models/sale_order.py b/addons/sale_coupon/models/sale_order.py index e057e3761472ea11756e90dcbdd515a0184eeab7..f46374a3c7622cc5c1a521eac2826297480a02b7 100644 --- a/addons/sale_coupon/models/sale_order.py +++ b/addons/sale_coupon/models/sale_order.py @@ -393,9 +393,8 @@ class SaleOrder(models.Model): def update_line(order, lines, values): '''Update the lines and return them if they should be deleted''' lines_to_remove = self.env['sale.order.line'] - # move global coupons to the end of the SO - if program.discount_apply_on == 'on_order': - values['sequence'] = max(order.order_line.mapped('sequence')) + 1 + # move coupons to the end of the SO + values['sequence'] = max(order.order_line.mapped('sequence')) + 1 # Check commit 6bb42904a03 for next if/else # Remove reward line if price or qty equal to 0