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