From dd6a60e2bce93ba3bf6043e51a67272930a2cc53 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 27 Feb 2013 18:28:29 +0100 Subject: [PATCH] [FIX] web: saved_action must start at index 1 bzr revid: chs@openerp.com-20130227172829-zxksmvky3hwltt7l --- addons/web/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 9fe38a9d23a..247d6f5dd00 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -866,7 +866,7 @@ class Session(openerpweb.Controller): """ saved_actions = req.httpsession.get('saved_actions') if not saved_actions: - saved_actions = {"next":0, "actions":{}} + saved_actions = {"next":1, "actions":{}} req.httpsession['saved_actions'] = saved_actions # we don't allow more than 10 stored actions if len(saved_actions["actions"]) >= 10: