[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.
This commit is contained in:
Frederic van der Essen
2014-07-28 11:33:24 +02:00
parent 8465e47cd0
commit cdc841d723
@@ -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){