Skip to content

Commit

Permalink
[FIX] sale_fixed_discount: Properly call the super method
Browse files Browse the repository at this point in the history
Issue introduced in #3150
  • Loading branch information
carlos-lopez-tecnativa committed Jan 9, 2025
1 parent 920b5fa commit 5c871a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_fixed_discount/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _compute_discount(self):
lines_with_discount_fixed = self.filtered(lambda sol: sol.discount_fixed)
for line in lines_with_discount_fixed:
line.discount = line._get_discount_from_fixed_discount()
return super(SaleOrderLine, self - lines_with_discount_fixed)
return super(SaleOrderLine, self - lines_with_discount_fixed)._compute_discount()

def _get_discount_from_fixed_discount(self):
"""Calculate the discount percentage from the fixed discount amount."""
Expand Down

0 comments on commit 5c871a9

Please sign in to comment.