[FIX] point_of_sale: missing Deffered to Promise conversion

Follow-up of the commit odoo/odoo@53285f1

closes odoo/odoo#36752

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
Pierre Paridans
2019-09-12 10:07:36 +00:00
parent 11a9089dd8
commit c24a132ee1
@@ -1723,7 +1723,7 @@ var ReceiptScreenWidget = ScreenWidget.extend({
var invoiced = self.pos.push_and_invoice_order(order);
self.invoicing = true;
invoiced.fail(self._handleFailedPushForInvoice.bind(self, order, true)); // refresh
invoiced.catch(self._handleFailedPushForInvoice.bind(self, order, true)); // refresh
invoiced.then(function(){
self.invoicing = false;