diff options
Diffstat (limited to 'addons/pos_restaurant/static/src/js/multiprint.js')
| -rw-r--r-- | addons/pos_restaurant/static/src/js/multiprint.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/pos_restaurant/static/src/js/multiprint.js b/addons/pos_restaurant/static/src/js/multiprint.js index cfc59661a71..d284917b940 100644 --- a/addons/pos_restaurant/static/src/js/multiprint.js +++ b/addons/pos_restaurant/static/src/js/multiprint.js @@ -297,13 +297,13 @@ models.Order = models.Order.extend({ }; }, - printChanges: function(){ + printChanges: async function(){ var printers = this.pos.printers; for(var i = 0; i < printers.length; i++){ var changes = this.computeChanges(printers[i].config.product_categories_ids); if ( changes['new'].length > 0 || changes['cancelled'].length > 0){ var receipt = QWeb.render('OrderChangeReceipt',{changes:changes, widget:this}); - printers[i].print_receipt(receipt); + await printers[i].print_receipt(receipt); } } }, @@ -339,10 +339,10 @@ models.Order = models.Order.extend({ var SubmitOrderButton = screens.ActionButtonWidget.extend({ 'template': 'SubmitOrderButton', - button_click: function(){ + button_click: async function(){ var order = this.pos.get_order(); if(order.hasChangesToPrint()){ - order.printChanges(); + await order.printChanges(); order.saveChanges(); } }, |
