[FIX] base: swap regen asset bundle to registry cache
Since [1] `model.clear_cache` is no longer recommended. Most models were changed besides the function responsible for regenerating asset bundles. This leads to a deprecation warning when pressing the button in the debug menu in 16.4+ 1: #119813 opw-3694331 closes odoo/odoo#150948 X-original-commit: ef0db39416c678a3a3e53ddb97971f87e912f44c Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com> Signed-off-by: Andrew Gavgavian (andg) <andg@odoo.com>
This commit is contained in:
@@ -739,4 +739,4 @@ class IrAttachment(models.Model):
|
||||
('res_id', '=', 0),
|
||||
('create_uid', '=', SUPERUSER_ID),
|
||||
]).unlink()
|
||||
self.clear_caches()
|
||||
self.env.registry.clear_cache('assets')
|
||||
|
||||
Reference in New Issue
Block a user