Skip to content

Commit

Permalink
[FIX] point_of_sale: missing Deffered to Promise conversion
Browse files Browse the repository at this point in the history
Follow-up of the commit odoo/odoo@53285f1

closes odoo#36752

Signed-off-by: pimodoo <[email protected]>
  • Loading branch information
pparidans committed Sep 12, 2019
1 parent 11a9089 commit c24a132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/point_of_sale/static/src/js/screens.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c24a132

Please sign in to comment.