[FIX] if an action descriptor does not have a view_type attribute, behave as if it was 'form'
bzr revid: xmo@openerp.com-20111021104312-0d21m130wkedabfn
This commit is contained in:
parent
f5661001a6
commit
8773fca3a8
|
@ -526,7 +526,7 @@ def fix_view_modes(action):
|
|||
if 'views' not in action:
|
||||
generate_views(action)
|
||||
|
||||
if action.pop('view_type') != 'form':
|
||||
if action.pop('view_type', 'form') != 'form':
|
||||
return action
|
||||
|
||||
action['views'] = [
|
||||
|
|
Loading…
Reference in New Issue