From dafaaf9139ee6f1364f919525829434948f8f3e9 Mon Sep 17 00:00:00 2001 From: luis Date: Tue, 22 Jul 2025 13:39:47 +0200 Subject: [PATCH] product_sale_price_from_pricelist: round up or down --- product_sale_price_from_pricelist/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_sale_price_from_pricelist/models/product_template.py b/product_sale_price_from_pricelist/models/product_template.py index 8e39ca3..4bb23a4 100644 --- a/product_sale_price_from_pricelist/models/product_template.py +++ b/product_sale_price_from_pricelist/models/product_template.py @@ -84,7 +84,7 @@ class ProductTemplate(models.Model): ) # Round to 0.05 if round(price_with_taxes % 0.05, 2) != 0: - price_with_taxes = math.ceil(price_with_taxes / 0.05) * 0.05 + price_with_taxes = round(price_with_taxes * 20) / 20 template.write( {