From e2ea066360c0e027d85c2d939e429081604bece6 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 8 Jun 2018 15:43:07 +0200 Subject: [PATCH] [FIX] point_of_sale: refresh when qty changed - In the POS screen, select a product. - Set the keyboard on "Price" mode - Change the unit price - Set the keyboard on "Qty" mode - Change the qty The product qty and the total price doesn't refresh until you go to the payment screen. We manually trigger a change when the quantity is updated. opw-1855970 --- addons/point_of_sale/static/src/js/models.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index cd6b4d5045c..6394df4921c 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -1405,6 +1405,7 @@ exports.Orderline = Backbone.Model.extend({ this.set_unit_price(this.product.get_price(this.order.pricelist, this.get_quantity())); this.order.fix_tax_included_price(this); } + this.trigger('change', this); }, // return the quantity of product get_quantity: function(){