[MOV] ir.ui.view#write() forced noupdate moved in `website` (RTE only)

bzr revid: fme@openerp.com-20140509164408-rtml4brrhpiv4zz9
This commit is contained in:
Fabien Meghazi 2014-05-09 18:44:08 +02:00
commit dbd6e4362a
1 changed files with 0 additions and 7 deletions

View File

@ -204,13 +204,6 @@ class view(osv.osv):
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):