From e89541be44b58f4d93db6805fe2f4756151127c6 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Mon, 28 Dec 2015 12:31:32 +0100 Subject: [PATCH] [FIX] point_of_sale: open POS dashboard when no sessions on /pos/web When you go to /pos/web and there is no open session that belongs to the current user the controller redirected to an old action called action_pos_session_opening that was removed in 48ab50ed0d668537cfd1bb97fb45c862ed7dc93c. This replaces that action with action_client_pos_menu which just redirects to the POS dashboard. --- addons/point_of_sale/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/controllers/main.py b/addons/point_of_sale/controllers/main.py index adc1c85539f..b562b4001f8 100644 --- a/addons/point_of_sale/controllers/main.py +++ b/addons/point_of_sale/controllers/main.py @@ -18,7 +18,7 @@ class PosController(http.Controller): PosSession = request.registry['pos.session'] pos_session_ids = PosSession.search(cr, uid, [('state','=','opened'),('user_id','=',session.uid)], context=context) if not pos_session_ids: - return werkzeug.utils.redirect('/web#action=point_of_sale.action_pos_session_opening') + return werkzeug.utils.redirect('/web#action=point_of_sale.action_client_pos_menu') PosSession.login(cr, uid, pos_session_ids, context=context) return request.render('point_of_sale.index')