summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/static/src/js/models.js
diff options
context:
space:
mode:
authorAntoine Prieels <anp@odoo.com>2020-07-22 08:27:55 +0000
committerAntoine Prieels <anp@odoo.com>2020-07-22 09:28:24 +0000
commita2a8a91b9f8e6c7c91e59811f6ebfecfb5caa66f (patch)
tree9be0e3ab281208efdc6364fff2ab47f8d1f1f3f2 /addons/point_of_sale/static/src/js/models.js
parentaffa40bc21db5bc077ff41244f4db649cdb147a2 (diff)
[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>
Diffstat (limited to 'addons/point_of_sale/static/src/js/models.js')
-rw-r--r--addons/point_of_sale/static/src/js/models.js2
1 files changed, 1 insertions, 1 deletions
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