[FIX] ir.qweb: invalidate cache only when active

Complements rev. 8a7af44a07

The assets cache is only active while not in "xml dev" mode,
so the cache clearing must not be done while this development
mode is active (i.e. with `--dev=xml`)
This commit is contained in:
Olivier Dony
2016-12-02 17:19:08 +01:00
parent 4fea5d1020
commit 553ea82f81
+2 -1
View File
@@ -175,7 +175,8 @@ class AssetsBundle(object):
]
# force bundle invalidation on other workers
self.env['ir.qweb']._get_asset.clear_cache(self.env['ir.qweb'])
if 'xml' not in tools.config['dev_mode']:
self.env['ir.qweb']._get_asset.clear_cache(self.env['ir.qweb'])
return ira.sudo().search(domain).unlink()