Aaron Bohy
e5db9d8743
[FIX] web: action service: concurrency issue
...
There is a concurrency issue in the action service:
1) be in an action with several views
2) execute another action (e.g. by clicking on a menu)
-> [calls the route "/web/action/load", and it takes a while]
3) meanwhile, click on another view in the view switcher
If the call to "/web/action/load" is long enough, it may happen
that the view requested in step 3 is briefly shown before the
action associated with the menu clicked in step 2.
In this scenario, the action of step 2 should never be displayed,
because the user requested something else afterwards (in this
case a switch view).
One can produce a similar issue when restoring a previous action
of the breadcrumbs instead of switching view.
This commit fixes those two issues by registering a resolved
promise in the keepLast (concurrency utils), s.t. it "cancels"
the potential current operation (in this case, the call to
"/web/load/action").
closes odoo/odoo#87204
X-original-commit: fb9c8cd6fee476d2506b8c1338bf88c4520ea7b6
Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com >
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com >
2022-03-24 21:38:44 +01:00
..
2022-03-24 17:12:30 +01:00
2022-03-11 15:19:09 +00:00
2022-03-02 17:10:48 +00:00
2022-03-12 10:57:13 +00:00
2022-03-03 09:10:45 +00:00
2022-03-18 00:22:51 +01:00
2022-02-24 11:26:50 +00:00
2022-02-24 11:26:50 +00:00
2022-03-02 17:10:48 +00:00
2022-03-10 16:35:04 +00:00
2022-03-22 23:30:59 +01:00
2022-02-24 13:30:50 +00:00
2022-02-24 13:30:50 +00:00
2022-02-26 13:41:23 +00:00
2022-03-02 13:05:42 +00:00
2022-03-02 22:16:52 +00:00
2022-03-23 01:26:13 +01:00
2022-02-07 14:18:00 +00:00
2022-02-07 14:17:59 +00:00
2022-02-14 10:44:50 +00:00
2022-03-02 13:05:42 +00:00
2022-02-18 14:29:20 +00:00
2022-03-02 13:05:42 +00:00
2022-03-21 17:57:05 +01:00
2022-03-14 08:42:58 +00:00
2021-12-07 13:48:53 +00:00
2022-03-01 09:57:39 +00:00
2022-02-24 13:30:51 +00:00
2022-03-23 13:39:56 +01:00
2022-03-14 17:28:27 +00:00
2022-02-12 08:55:18 +00:00
2022-03-02 17:10:48 +00:00
2022-03-24 10:48:56 +01:00
2022-02-14 10:44:50 +00:00
2022-03-02 17:10:48 +00:00
2022-03-17 11:27:59 +01:00
2021-12-14 12:39:54 +00:00
2022-03-23 07:06:06 +01:00
2021-12-02 12:12:01 +01:00
2022-02-02 11:46:52 +00:00
2022-03-16 14:11:45 +01:00
2022-03-23 20:18:34 +01:00
2022-03-23 20:18:34 +01:00
2022-03-02 17:10:48 +00:00
2022-03-02 17:10:48 +00:00
2022-03-23 20:18:34 +01:00
2021-12-16 17:33:47 +00:00
2022-02-12 08:55:18 +00:00
2022-02-14 10:44:50 +00:00
2022-03-02 17:10:48 +00:00
2022-03-02 17:10:48 +00:00
2022-02-14 10:44:50 +00:00
2022-03-07 10:41:47 +00:00
2022-02-12 08:55:18 +00:00
2022-02-14 10:44:50 +00:00
2022-03-02 13:05:42 +00:00
2022-03-01 09:57:39 +00:00
2022-03-23 13:39:56 +01:00
2022-03-14 17:28:13 +00:00
2022-03-02 22:16:59 +00:00
2022-03-22 22:12:35 +01:00
2022-03-02 18:45:59 +00:00
2022-02-28 17:27:08 +00:00
2022-03-24 17:12:34 +01:00
2022-03-02 18:45:59 +00:00
2022-03-02 18:45:59 +00:00
2022-03-02 13:05:42 +00:00
2021-12-07 13:48:53 +00:00
2022-03-02 17:10:48 +00:00
2022-03-23 00:29:36 +01:00
2022-03-21 14:01:03 +01:00
2021-12-15 12:07:26 +00:00
2022-03-16 16:07:00 +01:00
2022-03-16 16:07:00 +01:00
2022-03-02 18:45:59 +00:00
2022-02-14 10:44:50 +00:00
2022-03-14 16:36:12 +00:00
2022-02-28 13:53:09 +00:00
2022-03-24 12:57:16 +01:00
2022-02-21 17:01:02 +00:00
2022-02-21 17:01:02 +00:00
2022-02-16 16:57:20 +00:00
2022-03-23 16:16:54 +01:00
2021-12-08 11:17:22 +00:00
2022-02-20 20:39:50 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-24 11:26:50 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-03-24 13:57:11 +01:00
2022-03-07 19:15:03 +00:00
2022-03-24 12:57:29 +01:00
2022-02-12 08:55:18 +00:00
2022-01-25 17:21:04 +00:00
2022-02-12 08:55:18 +00:00
2022-01-27 21:50:25 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2021-12-18 21:00:49 +00:00
2022-03-08 14:59:18 +00:00
2022-03-07 19:15:03 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-17 09:06:57 +00:00
2022-02-28 08:26:51 +00:00
2022-02-12 08:55:18 +00:00
2022-02-21 16:07:50 +00:00
2022-02-12 08:55:18 +00:00
2022-03-12 11:49:52 +00:00
2022-03-09 09:23:58 +00:00
2022-03-09 20:13:49 +00:00
2022-02-17 16:41:51 +00:00
2022-03-03 11:04:30 +00:00
2022-03-24 13:57:11 +01:00
2022-01-11 13:34:56 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-03-09 16:12:57 +00:00
2022-02-12 08:55:18 +00:00
2022-03-02 23:08:24 +00:00
2022-02-12 08:55:18 +00:00
2022-03-09 16:12:57 +00:00
2022-03-24 13:57:11 +01:00
2022-02-28 13:52:51 +00:00
2022-03-03 11:04:03 +00:00
2022-03-03 11:04:03 +00:00
2022-03-03 11:04:03 +00:00
2022-02-08 14:53:55 +00:00
2022-02-25 14:29:44 +00:00
2022-03-24 13:57:15 +01:00
2022-03-09 11:21:47 +00:00
2022-03-24 13:57:11 +01:00
2022-02-12 08:55:18 +00:00
2022-01-28 14:10:01 +00:00
2022-03-03 16:17:42 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-03-14 08:42:58 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-21 12:17:06 +00:00
2022-02-12 08:55:18 +00:00
2022-02-21 12:17:06 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-23 12:08:57 +00:00
2021-12-22 00:12:52 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-03-15 10:48:45 +01:00
2022-03-15 10:48:45 +01:00
2022-03-18 14:14:58 +01:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-03-02 17:10:48 +00:00
2022-03-14 17:27:54 +00:00
2022-03-24 20:47:46 +01:00
2022-03-23 13:39:56 +01:00
2021-12-21 09:49:38 +00:00
2022-03-02 17:10:48 +00:00
2022-03-14 18:16:16 +00:00
2022-03-02 17:10:48 +00:00
2022-03-24 17:12:12 +01:00
2022-03-02 17:10:48 +00:00
2022-03-02 17:10:48 +00:00
2022-03-17 16:49:47 +01:00
2022-03-07 13:30:55 +00:00
2022-02-24 13:30:51 +00:00
2022-03-07 10:41:44 +00:00
2022-03-24 17:12:26 +01:00
2022-01-19 16:03:53 +00:00
2021-12-07 16:20:05 +00:00
2022-03-21 11:12:08 +01:00
2022-02-16 11:30:29 +00:00
2021-12-07 16:20:05 +00:00
2021-12-07 16:20:06 +00:00
2021-12-07 16:20:06 +00:00
2022-03-23 13:39:56 +01:00
2022-02-14 10:44:50 +00:00
2022-03-14 19:56:17 +00:00
2022-02-28 12:55:47 +00:00
2022-02-28 12:55:47 +00:00
2022-02-28 12:55:47 +00:00
2022-03-09 09:24:02 +00:00
2022-02-12 08:55:18 +00:00
2022-02-28 12:55:47 +00:00
2022-02-28 12:55:47 +00:00
2022-02-28 12:55:47 +00:00
2022-02-14 10:44:50 +00:00
2022-03-11 11:40:53 +00:00
2022-03-16 17:04:25 +01:00
2022-02-02 19:50:49 +00:00
2022-02-12 08:55:18 +00:00
2022-03-21 14:01:13 +01:00
2022-03-18 11:28:12 +01:00
2022-03-22 15:17:08 +01:00
2022-02-28 07:32:46 +00:00
2022-02-14 10:44:50 +00:00
2022-02-14 10:44:50 +00:00
2022-03-02 06:28:47 +00:00
2022-02-14 10:44:50 +00:00
2022-01-27 21:50:25 +00:00
2022-02-14 10:44:50 +00:00
2022-03-02 13:05:42 +00:00
2022-03-02 13:05:42 +00:00
2022-03-02 13:05:42 +00:00
2022-03-02 13:05:42 +00:00
2022-02-18 09:49:20 +00:00
2022-03-16 13:16:17 +01:00
2022-02-14 10:44:50 +00:00
2022-03-04 10:08:42 +00:00
2022-03-21 11:12:00 +01:00
2022-02-14 10:44:50 +00:00
2022-01-19 16:52:23 +00:00
2022-03-21 14:01:03 +01:00
2022-03-23 19:25:12 +01:00
2022-03-03 03:07:57 +00:00
2021-12-14 12:39:54 +00:00
2022-03-03 03:07:57 +00:00
2022-03-03 03:07:57 +00:00
2022-03-12 08:18:10 +00:00
2022-03-02 17:10:48 +00:00
2022-03-24 13:57:11 +01:00
2022-03-21 18:46:57 +01:00
2022-02-02 09:03:44 +00:00
2022-03-08 07:50:45 +00:00
2022-03-16 08:04:38 +01:00
2022-03-02 17:10:48 +00:00
2022-03-24 13:57:11 +01:00
2022-03-04 14:07:50 +00:00
2022-03-18 16:07:22 +01:00
2022-02-14 22:31:03 +00:00
2022-02-22 17:11:01 +00:00
2022-03-04 12:16:35 +00:00
2021-12-02 12:12:03 +01:00
2022-03-22 15:16:55 +01:00
2022-03-11 13:30:48 +00:00
2022-03-22 23:31:03 +01:00
2022-02-25 11:40:19 +00:00
2022-02-25 11:40:20 +00:00
2022-03-21 12:11:43 +01:00
2022-03-21 12:11:51 +01:00
2022-01-14 17:29:35 +00:00
2022-03-18 16:07:42 +01:00
2022-03-21 12:11:43 +01:00
2022-02-28 13:52:41 +00:00
2022-02-01 14:37:54 +00:00
2022-03-23 13:39:56 +01:00
2022-03-23 21:10:52 +01:00
2022-03-24 13:57:11 +01:00
2022-03-16 07:08:44 +01:00
2021-12-07 16:20:06 +00:00
2022-03-02 13:06:10 +00:00
2022-03-21 11:11:59 +01:00
2022-03-23 19:25:19 +01:00
2022-01-19 16:52:23 +00:00
2022-03-03 11:03:55 +00:00
2022-03-21 14:59:42 +01:00
2022-03-03 11:03:55 +00:00
2022-03-24 13:57:36 +01:00
2022-03-24 13:57:36 +01:00
2022-03-24 13:57:35 +01:00
2022-02-28 17:27:07 +00:00
2022-02-17 17:37:51 +00:00
2022-02-28 13:53:08 +00:00
2022-02-18 14:28:53 +00:00
2022-02-21 12:16:57 +00:00
2022-02-24 13:30:51 +00:00
2022-02-12 08:55:18 +00:00
2022-02-23 13:58:12 +00:00
2022-02-24 13:30:51 +00:00
2022-03-24 21:38:44 +01:00
2022-03-24 18:10:55 +01:00
2022-03-02 13:05:42 +00:00
2022-03-02 13:06:02 +00:00
2022-03-02 13:05:42 +00:00
2022-03-22 22:12:59 +01:00
2022-03-03 11:03:55 +00:00
2022-02-24 13:30:51 +00:00
2022-03-02 17:10:48 +00:00
2022-03-18 12:26:36 +01:00
2022-02-12 08:55:18 +00:00
2022-03-23 20:18:34 +01:00
2022-03-23 20:18:34 +01:00
2022-03-23 20:18:34 +01:00
2022-03-23 20:18:34 +01:00
2022-03-23 20:18:34 +01:00
2022-02-08 14:53:37 +00:00
2022-03-23 20:18:34 +01:00
2022-03-23 20:18:34 +01:00
2022-03-23 20:18:34 +01:00
2022-03-23 20:18:34 +01:00
2022-03-23 20:18:34 +01:00
2022-03-23 20:18:34 +01:00
2022-03-23 20:18:34 +01:00
2022-02-12 08:55:18 +00:00
2022-03-09 13:12:44 +00:00
2022-03-02 13:05:42 +00:00
2022-02-24 13:30:51 +00:00
2022-03-02 13:05:42 +00:00
2022-03-02 13:05:42 +00:00
2022-03-23 21:10:56 +01:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-12 08:55:18 +00:00
2022-02-15 09:26:54 +00:00
2022-02-08 14:53:39 +00:00
2022-02-08 14:53:39 +00:00
2022-03-02 13:05:42 +00:00
2022-03-23 12:10:57 +01:00
2022-02-21 08:41:30 +00:00
2022-02-25 07:35:40 +00:00
2022-02-21 08:41:30 +00:00
2022-02-21 08:41:33 +00:00
2022-03-02 17:10:48 +00:00
2022-02-21 08:41:30 +00:00
2022-02-21 08:41:30 +00:00
2022-03-02 17:10:48 +00:00
2022-02-21 08:41:33 +00:00
2021-12-23 15:30:23 +01:00
2022-02-21 08:41:30 +00:00
2022-03-23 13:39:56 +01:00
2022-03-02 13:05:42 +00:00
2022-02-28 11:07:38 +00:00
2022-02-12 08:55:18 +00:00
2022-02-24 13:30:51 +00:00