From f2fdaa017c66bfcc6fceece37ba0931169dc89b8 Mon Sep 17 00:00:00 2001 From: Frederic van der Essen Date: Wed, 1 Oct 2014 11:21:27 +0200 Subject: [PATCH] [FIX] point_of_sale: back on payment screen must always go to product list or you can get stuck --- addons/point_of_sale/static/src/js/screens.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(){