diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js index 9537bfa2837..dc7a44ab8c5 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -1211,6 +1211,9 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa click_set_customer: function(){ this.pos_widget.screen_selector.set_current_screen('clientlist'); }, + click_back: function(){ + this.pos_widget.screen_selector.set_current_screen('product-list'); + }, renderElement: function() { var self = this; this._super(); @@ -1224,7 +1227,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa this.render_paymentlines(); this.$('.back').click(function(){ - self.pos_widget.screen_selector.back(); + self.click_back(); }); this.$('.next').click(function(){