[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:
@@ -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'] = [
|
||||
|
||||
Reference in New Issue
Block a user