From 9f6ed9f6d1ef7ec1870980498480cae0ffc729d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Tue, 20 Jun 2023 09:48:53 +0000 Subject: [PATCH] [IMP] web: display empty screen when switching app/menu The goal is to provide a better feedback to the user, especially in mobile mode. With this commit, when switching menus, we clear the screen and display an empty control panel (only for act_window actions though) so we have some initial content that get filled as soon as the view/action is ready. Task 2900847 closes odoo/odoo#124068 Related: odoo/enterprise#43038 Signed-off-by: Aaron Bohy (aab) --- .../search/control_panel/control_panel.xml | 2 +- .../src/webclient/actions/action_service.js | 38 +++++++++++++++- .../src/webclient/menus/menu_service.js | 8 +++- .../core/commands/menu_provider_tests.js | 4 ++ .../tests/views/form/form_view_tests.js | 2 + .../webclient/actions/concurrency_tests.js | 4 +- .../webclient/actions/load_state_tests.js | 14 +++++- .../tests/webclient/actions/misc_tests.js | 43 +++++++++++++++++++ .../tests/webclient/actions/target_tests.js | 1 + 9 files changed, 109 insertions(+), 7 deletions(-) diff --git a/addons/web/static/src/search/control_panel/control_panel.xml b/addons/web/static/src/search/control_panel/control_panel.xml index 4ba3c7fcd9f..2490dc2ed90 100644 --- a/addons/web/static/src/search/control_panel/control_panel.xml +++ b/addons/web/static/src/search/control_panel/control_panel.xml @@ -8,7 +8,7 @@
-