[FIX] base: ir_ui_view don't call clear cache in dev mode since decorator is conditionnal
If we are in dev mode, _read_template has no cache, so impossible to clear the cache.
Some code call directly the _read_template, it's why the condition is duplicated (fe4df440a0)
This commit is contained in:
@@ -940,7 +940,8 @@ class view(osv.osv):
|
||||
|
||||
def clear_cache(self):
|
||||
""" Deprecated, use `clear_caches` instead. """
|
||||
self.clear_caches()
|
||||
if not config['dev_mode']:
|
||||
self.clear_caches()
|
||||
|
||||
def _contains_branded(self, node):
|
||||
return node.tag == 't'\
|
||||
|
||||
Reference in New Issue
Block a user