[FIX] web_studio: add background image in the cache hashes

When changing the background image with studio the image does not update.
It works in debug=assets mode.
This is due to the fact that the caching system is not aware of the presence of a possible background image

opw-2696786

closes odoo/odoo#83374

X-original-commit: 184029e3e1e8907e25dd712dd87afd65885695bb
Related: odoo/enterprise#23744
Signed-off-by: Achraf <abz@odoo.com>
This commit is contained in:
Achraf (abz)
2022-01-26 10:15:59 +00:00
parent ca28cff17d
commit 5cd61fc810
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -32,6 +32,7 @@ class IrUiMenu(models.Model):
"actionModel": False,
"webIcon": None,
"webIconData": None,
"backgroundImage": menu.get('backgroundImage'),
}
else:
action = menu['action']
+2 -1
View File
@@ -41,7 +41,8 @@ class LoadMenusTests(HttpCase):
"name": "root",
"webIcon": None,
"webIconData": None,
"xmlid": ""
"xmlid": "",
"backgroundImage": None,
}
}