From cdc841d723524b3c72c12b3258b11c089db94a61 Mon Sep 17 00:00:00 2001 From: Frederic van der Essen Date: Mon, 28 Jul 2014 11:33:24 +0200 Subject: [PATCH] [IMP] point_of_sale: allow an order to remember what screen it was on, instead of switching back to default screen. This is used by the soon to be merged restaurant addon to create new orders and display them at a particular screen. However, this behaviour is more confusing in the other cases, so I'll think of a better way to solve this. --- addons/point_of_sale/static/src/js/screens.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js index 9e0f3aecab8..deefd638310 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -73,8 +73,9 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa load_saved_screen: function(){ this.close_popup(); var selectedOrder = this.pos.get('selectedOrder'); - // this.set_current_screen(selectedOrder.get_screen_data('screen') || this.default_screen,null,'refresh'); - this.set_current_screen(this.default_screen,null,'refresh'); + // FIXME : this changing screen behaviour is sometimes confusing ... + this.set_current_screen(selectedOrder.get_screen_data('screen') || this.default_screen,null,'refresh'); + //this.set_current_screen(this.default_screen,null,'refresh'); }, set_user_mode: function(user_mode){