[FIX] clean_action not always return action

bzr revid: fme@openerp.com-20110712133430-l55d0bwxwb0znke1
This commit is contained in:
Fabien Meghazi 2011-07-12 15:34:30 +02:00
parent 8874fb058f
commit 3e79375a01
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,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']