[FIX] ir_ui_view noupdate only if arch change, otherwise it flags them when you check...
authorAntony Lesuisse <al@openerp.com>
Wed, 29 Jan 2014 05:10:09 +0000 (06:10 +0100)
committerAntony 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

index 704178f..3335406 100644 (file)
@@ -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: