[IMP] point_of_sale: Show a popup when there is no pos session

bzr revid: stw@openerp.com-20120509095555-sw6h3acxl9pn1537
This commit is contained in:
Stephane Wirtel
2012-05-09 11:55:55 +02:00
parent ca2db3740e
commit 1050ef628c
@@ -825,6 +825,10 @@ function openerp_pos_widgets(module, instance){ //module is instance.point_of_sa
this.buildWidgets();
instance.webclient.set_content_full_screen(true);
if (self.pos.get('account_journals').length === 0) {
// TODO: Create a popup to inform there is no PoSSession for this user
self.pos.screen_selector.show_popup('error');
}
}, this));
},
render: function() {