From be2e3bc6c06a45c749378e74d9b4497e0b331353 Mon Sep 17 00:00:00 2001 From: fd-oerp Date: Mon, 23 Dec 2024 15:01:32 -0500 Subject: [PATCH] [17.0][FIX] sale_fixed_discount: Fixed discount consideration for portal orders --- sale_fixed_discount/models/sale_order_line.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sale_fixed_discount/models/sale_order_line.py b/sale_fixed_discount/models/sale_order_line.py index 4692a5f6def..a66935852fa 100644 --- a/sale_fixed_discount/models/sale_order_line.py +++ b/sale_fixed_discount/models/sale_order_line.py @@ -83,7 +83,9 @@ 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."""