[MOV] ir.ui.view#write() forced noupdate moved in `website` (RTE only)
authorFabien Meghazi <fme@openerp.com>
Fri, 9 May 2014 14:11:06 +0000 (16:11 +0200)
committerFabien Meghazi <fme@openerp.com>
Fri, 9 May 2014 14:11:06 +0000 (16:11 +0200)
bzr revid: fme@openerp.com-20140509141106-vbokuh0prptxavvg

openerp/addons/base/ir/ir_ui_view.py

index fbc2750..f52b44e 100644 (file)
@@ -204,13 +204,6 @@ class view(osv.osv):
 
         self.read_template.clear_cache(self)
         ret = super(view, self).write(cr, uid, ids, vals, context)
-
-        # 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:
-                    self.pool.get('ir.model.data').write(cr, openerp.SUPERUSER_ID, view_.model_data_id.id, {'noupdate': True})
         return ret
 
     def copy(self, cr, uid, id, default=None, context=None):