[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:
Jeremy Kersten
2015-06-10 20:48:50 +02:00
parent 4a7fed2745
commit 8bac2adcee
+2 -1
View File
@@ -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'\