From 5cd61fc810b9e58417ac23b075b3d70dd7478ad5 Mon Sep 17 00:00:00 2001 From: "Achraf (abz)" Date: Mon, 24 Jan 2022 13:17:29 +0000 Subject: [PATCH] [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 --- addons/web/models/ir_ui_menu.py | 1 + addons/web/tests/test_load_menus.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/web/models/ir_ui_menu.py b/addons/web/models/ir_ui_menu.py index be5ae1e705c..dc134ad12e0 100644 --- a/addons/web/models/ir_ui_menu.py +++ b/addons/web/models/ir_ui_menu.py @@ -32,6 +32,7 @@ class IrUiMenu(models.Model): "actionModel": False, "webIcon": None, "webIconData": None, + "backgroundImage": menu.get('backgroundImage'), } else: action = menu['action'] diff --git a/addons/web/tests/test_load_menus.py b/addons/web/tests/test_load_menus.py index d8ba81f8b0d..74a685533be 100644 --- a/addons/web/tests/test_load_menus.py +++ b/addons/web/tests/test_load_menus.py @@ -41,7 +41,8 @@ class LoadMenusTests(HttpCase): "name": "root", "webIcon": None, "webIconData": None, - "xmlid": "" + "xmlid": "", + "backgroundImage": None, } }