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:
7eebddd
)
[FIX] ir_ui_view noupdate only if arch change, otherwise it flags them when you check...
author
Antony Lesuisse
<al@openerp.com>
Wed, 29 Jan 2014 05:10:09 +0000
(06:10 +0100)
committer
Antony Lesuisse
<al@openerp.com>
Wed, 29 Jan 2014 05:10:09 +0000
(06:10 +0100)
bzr revid: al@openerp.com-
20140129051009
-iuqpdz8a6qta6dx5
openerp/addons/base/ir/ir_ui_view.py
patch
|
blob
|
history
diff --git
a/openerp/addons/base/ir/ir_ui_view.py
b/openerp/addons/base/ir/ir_ui_view.py
index
704178f
..
3335406
100644
(file)
--- a/
openerp/addons/base/ir/ir_ui_view.py
+++ b/
openerp/addons/base/ir/ir_ui_view.py
@@
-179,8
+179,8
@@
class view(osv.osv):
self.read_template.clear_cache(self)
ret = super(view, self).write(cr, uid, ids, vals, context)
- if not context.get('install_mode', False):
- # touched views become noupdatable
+ # if arch is modified views become noupdatable
+ if 'arch' in vals and not context.get('install_mode', False):
# TODO: should be doable in a read and a write
for view_ in self.browse(cr, uid, ids, context=context):
if view_.model_data_id: