summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-10-21 12:43:12 +0200
committerXavier Morel <xmo@openerp.com>2011-10-21 12:43:12 +0200
commit8773fca3a87a3cda0c921da83845a2b2f2e2d5a1 (patch)
treefd76e368039f1bc1df35a3a80d950bf125fd3eac /addons
parentf5661001a61a3b4b43d03eed643d7465c4d28da1 (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/web/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 55e23aae979..cdcd155966e 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -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'] = [