From 35895bde21813782b58a20a06a7b2f9e033d560d Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 12 Dec 2011 11:11:21 +0100 Subject: [PATCH] [FIX] regenerate action's views key if it is empty, not just if it's absent lp bug: https://launchpad.net/bugs/903062 fixed bzr revid: xmo@openerp.com-20111212101121-ljjmq6phxgse0qjq --- 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 27cde36fa34..397a6a0d302 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -604,7 +604,7 @@ def fix_view_modes(action): :param dict action: an action descriptor :returns: nothing, the action is modified in place """ - if 'views' not in action: + if not action.get('views'): generate_views(action) id_form = None