~openerp-dev/openobject-server/saas-4-forum-crawl-xmo

« back to all changes in this revision

Viewing changes to openerp/addons/base/ir/ir_ui_view.py

  • Committer: Denis Ledoux
  • Date: 2014-04-24 13:55:07 UTC
  • Revision ID: dle@openerp.com-20140424135507-5130yyy5brpfqd5f
[FIX] http: set back the gen_session_id controller, because still used by openframework.js of web branch

Related to revision 5124 revid:al@openerp.com-20140316141311-m0xqh386ax952va1

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
 
205
205
        self.read_template.clear_cache(self)
206
206
        ret = super(view, self).write(cr, uid, ids, vals, context)
 
207
 
 
208
        # if arch is modified views become noupdatable
 
209
        if 'arch' in vals and not context.get('install_mode', False):
 
210
            # TODO: should be doable in a read and a write
 
211
            for view_ in self.browse(cr, uid, ids, context=context):
 
212
                if view_.model_data_id:
 
213
                    self.pool.get('ir.model.data').write(cr, openerp.SUPERUSER_ID, view_.model_data_id.id, {'noupdate': True})
207
214
        return ret
208
215
 
209
216
    def copy(self, cr, uid, id, default=None, context=None):