Skip to content

Commit

Permalink
[MOV] ir.ui.view#write() forced noupdate moved in website (RTE only)
Browse files Browse the repository at this point in the history
bzr revid: fme@openerp.com-20140509164408-rtml4brrhpiv4zz9
  • Loading branch information
amigrave committed May 9, 2014
2 parents 09d5302 + f506fc4 commit dbd6e43
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions openerp/addons/base/ir/ir_ui_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,6 @@ def write(self, cr, uid, ids, vals, context=None):

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):
Expand Down

0 comments on commit dbd6e43

Please sign in to comment.