From 591cb8bd8f6e488545805eff486b6f2a931355e8 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Wed, 14 Aug 2019 12:48:11 +0000 Subject: [PATCH] [FIX] product_matrix : multiple extra prices --- addons/product_matrix/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product_matrix/models/product_template.py b/addons/product_matrix/models/product_template.py index 60fccea14a3..b767458a516 100644 --- a/addons/product_matrix/models/product_template.py +++ b/addons/product_matrix/models/product_template.py @@ -79,7 +79,7 @@ class ProductTemplateAttributeValue(models.Model): } # The " " is to avoid having 'Not available' if the template has only one attribute line. extra_price = sum(self.mapped('price_extra')) if display_extra else 0 if extra_price: - sign = '+ ' if self.price_extra > 0 else '- ' + sign = '+ ' if extra_price > 0 else '- ' header_cell.update({ "price": sign + self.env['ir.qweb.field.monetary'].value_to_html( extra_price, {