summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Kalola <dka@openerp.com>2015-12-01 15:33:06 +0530
committerJoren Van Onder <jov@odoo.com>2015-12-01 15:00:42 +0100
commit2317e853cc3950ca3c42e60891fa6072bc155262 (patch)
treedc980bbd595fd05be8b50f4a6f4ee6f0f063f1cd
parent87f96c942ab4381b489db5b6bf5de959f0ec3d7f (diff)
[FIX] point_of_sale: wait on invoicing to finish before printing receipt
After this commit was introduced 4a72a703026942197b62d69f65432b339686232a , When you click on validate with invoicing enabled without customer, the popup for select a customer open and immediately we switch to the receipt screen, that gets rid of popup. In this commit we print the receipt after invoice process done in backend when validate an order with invoicing enabled so that it's work like before.
-rw-r--r--addons/point_of_sale/static/src/js/screens.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js
index 08af480eee2..ded5088de26 100644
--- a/addons/point_of_sale/static/src/js/screens.js
+++ b/addons/point_of_sale/static/src/js/screens.js
@@ -1911,12 +1911,13 @@ var PaymentScreenWidget = ScreenWidget.extend({
invoiced.done(function(){
self.invoicing = false;
+ self.gui.show_screen('receipt');
});
} else {
this.pos.push_order(order);
+ this.gui.show_screen('receipt');
}
- this.gui.show_screen('receipt');
},
});
gui.define_screen({name:'payment', widget: PaymentScreenWidget});