From 8342a7c51d79a9090133348bc43f3a22c739bf20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Fri, 31 Jan 2014 12:45:42 +0100 Subject: [PATCH] [FIX] point_of_sale: update redirection system with the website-al changes bzr revid: fva@openerp.com-20140131114542-09hnjju5sdcen20q --- addons/point_of_sale/controllers/main.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/addons/point_of_sale/controllers/main.py b/addons/point_of_sale/controllers/main.py index a340b5f..b6848c8 100644 --- a/addons/point_of_sale/controllers/main.py +++ b/addons/point_of_sale/controllers/main.py @@ -58,13 +58,12 @@ class PosController(http.Controller): @http.route('/pos/web', type='http', auth='none') def a(self, debug=False, **k): + if not request.session.uid: + return http.local_redirect('/web/login?redirect=/pos/web') js_list = manifest_list('js',db=request.db, debug=debug) css_list = manifest_list('css',db=request.db, debug=debug) - print css_list - print js_list - js = "\n".join('' % i for i in js_list) #css = "\n".join('' % i for i in css_list) r = html_template % { @@ -76,9 +75,6 @@ class PosController(http.Controller): wc.show_application = function(){ wc.action_manager.do_action("pos.ui"); }; - wc.show_login = function(){ - window.location.href = '/'; - } wc.appendTo($(document.body)); """ } -- 1.7.10.4