projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cad385
)
[FIX] incorrect return value for fix_view_modes in case the view_type is tree
author
Xavier Morel
<xmo@openerp.com>
Tue, 5 Jul 2011 06:48:17 +0000
(08:48 +0200)
committer
Xavier Morel
<xmo@openerp.com>
Tue, 5 Jul 2011 06:48:17 +0000
(08:48 +0200)
bzr revid: xmo@openerp.com-
20110705064817
-pxjafkogvc3tub4t
addons/base/controllers/main.py
patch
|
blob
|
history
diff --git
a/addons/base/controllers/main.py
b/addons/base/controllers/main.py
index
78d1c95
..
12671f4
100644
(file)
--- a/
addons/base/controllers/main.py
+++ b/
addons/base/controllers/main.py
@@
-325,7
+325,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']