[FIX] ir_ui_view: write noupdate on ir_model_data with SUPERUSER when the user write

bzr revid: chm@openerp.com-20140117134916-w59ive0yiqchp57m
This commit is contained in:
Christophe Matthieu
2014-01-17 14:49:16 +01:00
parent 1b44ed492f
commit 2f974012db
+1 -1
View File
@@ -183,7 +183,7 @@ class view(osv.osv):
# 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:
view_.model_data_id.write({'noupdate': True})
self.pool.get('ir.model.data').write(cr, openerp.SUPERUSER_ID, view_.model_data_id.id, {'noupdate': True})
return ret
# default view selection