[FIX] incorrect return value for fix_view_modes in case the view_type is tree

bzr revid: xmo@openerp.com-20110705064817-pxjafkogvc3tub4t
This commit is contained in:
Xavier Morel 2011-07-05 08:48:17 +02:00
parent 7cad385182
commit 41ce7d903d
1 changed files with 1 additions and 1 deletions

View 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']