[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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user