[FIX] point_of_sale: update redirection system with the website-al changes

bzr revid: fva@openerp.com-20140131114542-09hnjju5sdcen20q
This commit is contained in:
Frédéric van der Essen 2014-01-31 12:45:42 +01:00
parent 5451f5587d
commit 8342a7c51d
1 changed files with 2 additions and 6 deletions

View File

@ -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('<script type="text/javascript" src="%s"></script>' % i for i in js_list)
#css = "\n".join('<link rel="stylesheet" href="%s">' % 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));
"""
}