[FIX] clean_action not always return action
bzr revid: fme@openerp.com-20110712133430-l55d0bwxwb0znke1
This commit is contained in:
parent
8874fb058f
commit
3e79375a01
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue