FrancoisGe
97a641a750
[FIX] web: client action reload
...
This commit aims to solve two problems:
1. Keeping the hash if no action_id or menu_id is passed as a parameter.
2. Always force a reload of the page.
Description of the issues:
1. When reloading from an action, we just want to force a reload of the
page while staying on the same action. We only want to modify the hash
if we want to reload the page by opening another action.
2. When installing the website module, an error dialog is displayed and
the page is not reloaded because location.assign(...) only causes
a reload when the url has changed (path or search, it ignores the hash).
The error comes from trying to access a client action that is not yet
in the assets. It will be added when the page is reloaded.
Solution:
1. Modify the hash only when you have action_id or menu_id in the action params
2. We have thought of two solutions:
- Do a location.reload(...) when the url has not changed. The error
appears during the reload time because location.assign(...) modifies
the hash. The service action will then try to execute the client action
which does not yet exist. (legacy solution)
- Always have a different url so that location.assign(...) causes a reload.
So we decided to add/remove the reload key in the url search. This will
always force a reload. We will opt for this solution because it avoids
displaying a crash.
closes odoo/odoo#112077
Taskid: 3144132
X-original-commit: 77772c0e73d9f561fed63847175e2dbc9b809fa1
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com >
2023-02-07 13:34:45 +01:00
..
2023-02-07 08:40:55 +01:00
2023-02-01 10:25:01 +01:00
2023-01-27 17:29:16 +01:00
2023-02-03 16:32:12 +01:00
2023-02-01 10:25:01 +01:00
2023-01-31 16:25:03 +01:00
2023-02-03 17:40:58 +01:00
2023-01-26 19:56:07 +01:00
2022-12-13 11:47:49 +01:00
2022-11-23 21:56:09 +01:00
2023-01-31 12:56:24 +01:00
2022-12-26 11:39:44 +01:00
2023-01-17 01:10:09 +01:00
2022-12-02 14:40:25 +01:00
2023-02-03 09:28:41 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-01-24 10:20:30 +01:00
2023-01-27 23:17:35 +01:00
2023-02-01 10:25:01 +01:00
2023-01-24 10:20:30 +01:00
2022-12-16 16:17:41 +01:00
2023-01-25 16:36:53 +01:00
2023-01-16 19:45:52 +01:00
2023-01-24 10:20:30 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-01-27 21:10:16 +01:00
2023-01-30 22:27:14 +01:00
2023-02-03 19:49:15 +01:00
2023-02-03 11:45:32 +01:00
2023-02-06 10:18:45 +01:00
2023-01-24 10:20:30 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-02-01 10:25:01 +01:00
2023-01-27 23:17:35 +01:00
2023-01-09 16:39:15 +01:00
2022-11-14 16:21:55 +01:00
2023-01-27 19:56:03 +01:00
2023-02-03 21:49:41 +01:00
2023-02-03 06:06:23 +01:00
2023-01-31 15:17:55 +01:00
2023-01-24 10:20:30 +01:00
2023-02-03 05:09:06 +01:00
2023-02-03 05:09:06 +01:00
2023-01-24 10:20:30 +01:00
2023-01-31 12:56:22 +01:00
2022-12-16 16:17:41 +01:00
2023-02-03 09:28:30 +01:00
2023-01-11 22:43:14 +01:00
2023-02-03 16:32:37 +01:00
2023-02-03 10:25:00 +01:00
2023-02-03 12:55:39 +01:00
2023-02-03 12:55:50 +01:00
2022-12-12 18:16:17 +01:00
2022-12-06 10:52:26 +01:00
2023-02-07 08:40:45 +01:00
2023-01-27 08:17:52 +01:00
2023-01-24 10:20:30 +01:00
2023-01-31 12:56:14 +01:00
2023-02-01 10:25:01 +01:00
2023-01-27 23:17:35 +01:00
2022-12-16 16:17:41 +01:00
2023-01-27 19:56:08 +01:00
2023-01-27 23:17:35 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-02-03 14:23:02 +01:00
2023-02-03 10:25:00 +01:00
2023-02-03 10:25:00 +01:00
2023-02-03 10:25:00 +01:00
2023-02-03 10:25:00 +01:00
2023-02-01 10:25:01 +01:00
2022-12-27 11:17:41 +01:00
2023-01-31 12:55:49 +01:00
2023-01-17 18:12:48 +01:00
2022-12-02 14:40:25 +01:00
2022-12-14 14:19:58 +01:00
2023-02-03 11:45:46 +01:00
2023-01-18 17:38:01 +01:00
2023-01-17 19:55:50 +01:00
2023-01-31 16:24:40 +01:00
2022-11-11 17:54:39 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-01-17 19:55:50 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 14:38:18 +01:00
2023-02-01 12:27:48 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-01-23 16:01:27 +01:00
2023-02-01 10:25:01 +01:00
2023-01-17 19:55:50 +01:00
2023-02-01 10:25:01 +01:00
2023-02-03 09:28:52 +01:00
2023-01-18 13:25:32 +01:00
2023-01-18 13:25:32 +01:00
2023-01-24 16:18:23 +01:00
2023-01-27 14:03:35 +01:00
2023-01-18 13:25:32 +01:00
2023-02-01 10:25:01 +01:00
2023-01-17 19:55:50 +01:00
2023-01-03 13:16:05 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-01-31 12:56:27 +01:00
2023-01-30 09:39:40 +01:00
2023-02-01 10:25:01 +01:00
2023-01-17 19:55:50 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-01-26 14:19:00 +01:00
2023-02-01 14:38:28 +01:00
2023-01-10 15:43:16 +01:00
2023-01-24 16:18:18 +01:00
2023-02-01 14:37:50 +01:00
2023-02-01 10:25:01 +01:00
2023-01-17 19:55:50 +01:00
2023-01-30 19:45:56 +01:00
2022-12-16 16:17:41 +01:00
2023-01-30 15:35:25 +01:00
2023-02-01 10:25:01 +01:00
2023-01-17 19:55:50 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-01-27 23:17:50 +01:00
2023-01-17 19:55:50 +01:00
2023-02-03 10:35:44 +01:00
2023-02-03 16:32:12 +01:00
2023-02-03 16:32:12 +01:00
2023-01-23 16:01:27 +01:00
2023-01-02 09:53:57 +01:00
2023-01-02 09:53:57 +01:00
2023-01-02 09:53:57 +01:00
2023-01-02 09:53:57 +01:00
2023-02-01 10:25:01 +01:00
2023-02-06 09:20:56 +01:00
2023-02-06 14:16:42 +01:00
2023-02-06 16:28:41 +01:00
2023-02-06 14:16:42 +01:00
2023-02-06 14:16:42 +01:00
2023-01-17 19:55:50 +01:00
2023-01-17 19:55:50 +01:00
2023-02-01 13:30:46 +01:00
2023-02-01 10:25:01 +01:00
2022-11-23 16:14:45 +01:00
2023-02-01 10:25:01 +01:00
2022-12-16 16:17:41 +01:00
2023-01-29 03:41:52 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-03 16:32:05 +01:00
2022-12-09 19:45:52 +01:00
2023-02-01 10:25:01 +01:00
2022-11-29 13:20:31 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-01-17 19:55:50 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2022-12-16 12:45:40 +01:00
2023-02-01 10:25:01 +01:00
2023-01-17 19:55:50 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 14:37:50 +01:00
2023-01-17 19:55:50 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-01-17 19:55:50 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-01-17 19:55:50 +01:00
2023-01-20 06:21:02 +01:00
2023-02-03 05:09:14 +01:00
2023-01-27 23:17:35 +01:00
2023-02-03 11:45:46 +01:00
2022-11-11 17:54:39 +01:00
2023-01-27 19:56:03 +01:00
2023-01-17 20:58:34 +01:00
2023-01-24 10:20:30 +01:00
2023-02-03 18:43:44 +01:00
2023-01-26 22:09:53 +01:00
2023-01-26 22:09:53 +01:00
2022-12-22 15:55:07 +01:00
2023-01-03 13:16:02 +01:00
2022-12-01 16:27:52 +01:00
2023-02-03 09:28:30 +01:00
2023-02-04 10:45:02 +01:00
2023-02-06 14:16:26 +01:00
2023-01-26 17:33:49 +01:00
2023-01-11 13:20:48 +01:00
2023-02-01 10:25:01 +01:00
2022-11-14 13:01:57 +01:00
2023-01-24 10:20:30 +01:00
2022-12-01 17:32:22 +01:00
2023-01-10 18:54:47 +01:00
2023-01-06 08:09:07 +01:00
2023-01-30 22:27:15 +01:00
2023-02-03 17:40:58 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-06 18:35:30 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-01 10:25:01 +01:00
2023-02-03 17:40:58 +01:00
2023-01-24 10:20:30 +01:00
2023-02-07 11:41:34 +01:00
2023-01-30 19:45:59 +01:00
2023-01-23 16:01:27 +01:00
2023-01-23 16:01:27 +01:00
2023-01-25 08:18:01 +01:00
2023-01-23 16:01:27 +01:00
2023-02-01 16:39:51 +01:00
2023-02-01 14:38:03 +01:00
2023-02-02 21:25:09 +01:00
2023-01-25 16:37:10 +01:00
2023-02-01 17:49:13 +01:00
2023-01-25 16:37:10 +01:00
2023-01-23 16:01:27 +01:00
2023-01-30 17:54:34 +01:00
2023-01-23 16:01:27 +01:00
2023-01-19 18:49:53 +01:00
2023-01-23 16:01:27 +01:00
2023-01-23 16:01:27 +01:00
2023-02-06 16:28:47 +01:00
2022-12-01 16:27:58 +01:00
2023-02-03 05:08:43 +01:00
2023-01-17 20:58:34 +01:00
2023-01-06 18:41:46 +01:00
2023-02-01 10:25:01 +01:00
2023-01-04 11:35:49 +01:00
2023-01-24 10:20:30 +01:00
2023-02-06 12:09:44 +01:00
2022-11-09 21:17:46 +01:00
2022-12-19 11:33:49 +01:00
2023-02-03 14:23:02 +01:00
2023-02-03 07:07:04 +01:00
2023-01-31 15:17:52 +01:00
2023-01-24 10:20:30 +01:00
2023-01-27 23:17:35 +01:00
2023-02-03 17:41:18 +01:00
2023-01-13 16:27:26 +01:00
2023-01-13 16:27:26 +01:00
2023-02-06 14:16:26 +01:00
2023-01-27 19:56:09 +01:00
2023-01-24 10:20:30 +01:00
2023-02-03 10:25:00 +01:00
2023-02-06 14:16:39 +01:00
2023-02-01 10:25:01 +01:00
2023-02-03 05:09:05 +01:00
2023-02-03 05:09:05 +01:00
2023-01-24 09:12:01 +01:00
2022-11-09 23:33:27 +01:00
2023-02-03 11:45:19 +01:00
2023-02-03 05:09:05 +01:00
2023-01-26 12:19:09 +01:00
2022-11-09 16:08:19 +01:00
2023-01-18 21:08:52 +01:00
2022-11-25 17:55:59 +01:00
2023-02-03 07:07:14 +01:00
2023-01-30 16:45:40 +01:00
2023-01-13 16:27:26 +01:00
2023-02-03 11:45:19 +01:00
2023-01-16 15:43:00 +01:00
2023-02-06 14:16:26 +01:00
2023-02-03 05:09:05 +01:00
2023-02-01 10:25:01 +01:00
2023-02-03 05:09:05 +01:00
2023-01-10 18:54:47 +01:00
2023-02-01 10:25:01 +01:00
2023-02-07 09:42:05 +01:00
2023-02-07 09:42:05 +01:00
2023-02-06 10:19:02 +01:00
2023-01-17 20:59:02 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-13 16:27:17 +01:00
2023-01-24 10:20:30 +01:00
2023-01-26 19:56:04 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-02-03 07:07:08 +01:00
2023-01-24 10:20:30 +01:00
2023-01-24 10:20:30 +01:00
2023-01-26 19:56:04 +01:00
2023-02-06 14:16:26 +01:00
2023-02-06 14:16:26 +01:00
2023-01-24 10:20:30 +01:00
2022-12-23 12:10:58 +01:00
2023-02-03 06:06:10 +01:00
2023-02-01 10:25:01 +01:00
2023-02-03 06:05:56 +01:00
2023-01-13 16:27:38 +01:00
2022-11-21 22:20:27 +01:00
2022-11-21 22:20:27 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 19:56:09 +01:00
2023-01-27 19:56:08 +01:00
2023-01-25 09:16:47 +01:00
2023-01-27 19:56:08 +01:00
2023-02-03 10:25:00 +01:00
2023-01-27 23:17:35 +01:00
2023-02-01 10:25:01 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-02-03 06:05:51 +01:00
2023-01-20 06:21:02 +01:00
2023-02-07 13:34:45 +01:00
2023-02-07 08:40:57 +01:00
2023-02-03 08:24:42 +01:00
2023-01-24 10:20:30 +01:00
2023-02-07 08:41:00 +01:00
2023-01-27 19:56:03 +01:00
2023-01-27 23:17:35 +01:00
2023-01-17 20:58:34 +01:00
2023-01-24 10:20:30 +01:00
2023-02-03 05:09:11 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-02-03 10:25:00 +01:00
2022-12-02 14:40:25 +01:00
2023-01-24 10:20:30 +01:00
2023-01-16 19:45:57 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-01-17 20:58:41 +01:00
2023-01-16 19:45:57 +01:00
2023-01-24 21:10:52 +01:00
2023-02-03 07:06:58 +01:00
2022-12-06 10:52:50 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2022-11-24 19:25:14 +01:00
2022-11-24 19:25:14 +01:00
2023-01-31 15:17:58 +01:00
2022-12-01 16:27:52 +01:00
2023-01-24 10:20:30 +01:00
2022-12-02 14:40:25 +01:00
2022-12-02 14:40:25 +01:00
2023-02-03 17:40:58 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-02-04 11:48:24 +01:00
2022-12-02 14:40:25 +01:00
2023-01-16 19:45:57 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-02-03 11:45:30 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-01-27 23:17:35 +01:00
2023-02-03 11:45:30 +01:00
2023-02-03 11:45:30 +01:00
2023-01-16 19:45:57 +01:00
2023-01-24 10:20:30 +01:00