From a2a8a91b9f8e6c7c91e59811f6ebfecfb5caa66f Mon Sep 17 00:00:00 2001 From: Antoine Prieels Date: Wed, 22 Jul 2020 08:27:55 +0000 Subject: [PATCH] [FIX] point_of_sale: Refresh customer display on payment line change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Antoine Prieƫls --- addons/point_of_sale/static/src/js/models.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 9875d3030ab..ba818aab258 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -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