[FIX] point_of_sale: Refresh customer display on payment line change

The customer display was not refreshed when changing the amount of a
payment line.

closes odoo/odoo#54747

X-original-commit: 6e114dcd4e3569b005f5fa2770b4261d53b348fb
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
This commit is contained in:
Antoine Prieels
2020-07-22 09:28:24 +00:00
parent affa40bc21
commit a2a8a91b9f
+1 -1
View File
@@ -2323,7 +2323,7 @@ exports.Paymentline = Backbone.Model.extend({
set_amount: function(value){
this.order.assert_editable();
this.amount = round_di(parseFloat(value) || 0, this.pos.currency.decimals);
if (this.pos.iface_customer_facing_display) this.pos.send_current_order_to_customer_facing_display();
if (this.pos.config.iface_customer_facing_display) this.pos.send_current_order_to_customer_facing_display();
this.trigger('change',this);
},
// returns the amount of money on this paymentline