[FIX] incorrect return value for fix_view_modes in case the view_type is tree
authorXavier Morel <xmo@openerp.com>
Tue, 5 Jul 2011 06:48:17 +0000 (08:48 +0200)
committerXavier Morel <xmo@openerp.com>
Tue, 5 Jul 2011 06:48:17 +0000 (08:48 +0200)
bzr revid: xmo@openerp.com-20110705064817-pxjafkogvc3tub4t

addons/base/controllers/main.py

index 78d1c95..12671f4 100644 (file)
@@ -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']