From 1050ef628c041f149ef9afa1a292109abefe8634 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Wed, 9 May 2012 11:55:55 +0200 Subject: [PATCH] [IMP] point_of_sale: Show a popup when there is no pos session bzr revid: stw@openerp.com-20120509095555-sw6h3acxl9pn1537 --- addons/point_of_sale/static/src/js/pos_widgets.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/point_of_sale/static/src/js/pos_widgets.js b/addons/point_of_sale/static/src/js/pos_widgets.js index 4bb6ba19f0a..a2f0db5f336 100644 --- a/addons/point_of_sale/static/src/js/pos_widgets.js +++ b/addons/point_of_sale/static/src/js/pos_widgets.js @@ -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() {