Skip to content

Commit

Permalink
[IMP] Refactor ir.ui.view's read_template cache invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
amigrave committed Sep 17, 2014
1 parent 720e31d commit 0084646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openerp/addons/base/ir/ir_ui_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def create(self, cr, uid, values, context=None):
if not values.get('name'):
values['name'] = "%s %s" % (values.get('model'), values['type'])

self.read_template.clear_cache(self)
self.clear_cache()
return super(view, self).create(
cr, uid,
self._compute_defaults(cr, uid, values, context=context),
Expand All @@ -275,7 +275,7 @@ def write(self, cr, uid, ids, vals, context=None):
if custom_view_ids:
self.pool.get('ir.ui.view.custom').unlink(cr, uid, custom_view_ids)

self.read_template.clear_cache(self)
self.clear_cache()
ret = super(view, self).write(
cr, uid, ids,
self._compute_defaults(cr, uid, vals, context=context),
Expand Down

0 comments on commit 0084646

Please sign in to comment.