[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user