[FIX] product_matrix : multiple extra prices

This commit is contained in:
Victor Feyens
2019-08-20 14:02:29 +00:00
committed by Damien Bouvy
parent a4a52da121
commit 591cb8bd8f
@@ -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, {