From 41ce7d903dced2f479115c242918373ba68ea42c Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 5 Jul 2011 08:48:17 +0200 Subject: [PATCH] [FIX] incorrect return value for fix_view_modes in case the view_type is tree bzr revid: xmo@openerp.com-20110705064817-pxjafkogvc3tub4t --- addons/base/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/base/controllers/main.py b/addons/base/controllers/main.py index 78d1c957a6e..12671f42e5b 100644 --- a/addons/base/controllers/main.py +++ b/addons/base/controllers/main.py @@ -325,7 +325,7 @@ def fix_view_modes(action): generate_views(action) if action.pop('view_type') != 'form': - return + return action action['views'] = [ [id, mode if mode != 'tree' else 'list']