diff --git a/pos_orderline_absolute_discount/models/pos_order_model.py b/pos_orderline_absolute_discount/models/pos_order_model.py index 07e07d034a..ae7494417b 100644 --- a/pos_orderline_absolute_discount/models/pos_order_model.py +++ b/pos_orderline_absolute_discount/models/pos_order_model.py @@ -45,7 +45,7 @@ class PosOrderLine(models.Model): "price_unit", "tax_ids", "qty", "discount", "product_id", "absolute_discount" ) def _compute_amount_line_all(self): - super(PosOrderLine, self)._compute_amount_line_all() + res = super(PosOrderLine, self)._compute_amount_line_all() for line in self: fpos = line.order_id.fiscal_position_id tax_ids_after_fiscal_position = ( @@ -62,12 +62,13 @@ def _compute_amount_line_all(self): product=line.product_id, partner=line.order_id.partner_id, ) - line.update( + res.update( { "price_subtotal_incl": taxes["total_included"], "price_subtotal": taxes["total_excluded"], } ) + return res @api.onchange("qty", "discount", "price_unit", "tax_ids", "absolute_discount") def _onchange_qty(self):