Joseph Caburnay
787223c4e7
[FIX] point_of_sale: random runbot error (20517)
...
When performing the picking action in the context of savepoint, the env
inside the action can randomly change causing an AccessError which is
caught as UserError (in the current point_of_sale code). Flushing before
calling a method in a savepoint will deterministically avoid this issue.
Note that the weakset used to store environments was modified in #121604
to avoid this kind of issue.
When using a cr.savepoint, the transaction must be flushed but in we
don't have any reference to the env that should be used on the cursor,
meaning that the env is chosen in the list of existing env. This choice
is random because Transaction.envs is using a Weakset.
In some case, the chosen env does not have the correct access right
because the context allowed_company_ids is corresponding to a company
coming from another test, leading to an access error, hidden by the try
except.
Flushing the environment before creating the savepoint will help to
prevent this issue by flushing on a well defined environment.
Note that the weakset used to store environments was modified in #121604
(master)
closes odoo/odoo#123048
X-original-commit: c7c268ed50c1f6fd6eebe7d8a01abdb9d4a32573
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com >
2023-05-31 14:23:42 +02:00
..
2023-05-31 10:32:14 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-24 14:28:12 +02:00
2023-05-17 10:34:00 +02:00
2023-05-25 21:28:51 +02:00
2023-04-19 21:58:27 +02:00
2023-05-22 17:52:07 +02:00
2023-05-25 16:29:42 +02:00
2023-05-24 09:49:19 +02:00
2023-05-17 13:37:54 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-26 11:40:45 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 11:43:04 +02:00
2023-05-17 10:34:00 +02:00
2023-05-17 10:34:00 +02:00
2023-05-17 10:34:00 +02:00
2023-05-24 09:49:10 +02:00
2023-05-03 12:39:40 +02:00
2023-05-22 17:52:07 +02:00
2023-05-23 16:32:04 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-17 10:34:00 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-31 14:23:37 +02:00
2023-05-24 14:28:23 +02:00
2023-05-25 19:16:24 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-04-18 08:26:23 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 13:54:08 +02:00
2023-05-22 17:52:07 +02:00
2023-03-23 09:06:52 +01:00
2023-05-22 17:52:07 +02:00
2023-05-24 17:05:46 +02:00
2023-05-17 10:34:00 +02:00
2023-05-31 11:44:55 +02:00
2023-05-17 10:34:00 +02:00
2023-05-31 11:44:55 +02:00
2023-05-24 17:05:46 +02:00
2023-05-26 11:40:49 +02:00
2023-05-30 19:09:55 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-23 22:32:45 +02:00
2023-05-22 13:54:08 +02:00
2023-05-17 10:34:00 +02:00
2023-05-30 14:17:04 +02:00
2023-05-22 17:52:07 +02:00
2023-05-31 13:07:46 +02:00
2023-05-31 09:23:21 +02:00
2023-05-22 17:52:07 +02:00
2023-05-31 13:08:29 +02:00
2023-05-31 14:23:34 +02:00
2023-03-22 00:53:57 +01:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-26 18:41:40 +02:00
2023-05-30 14:17:04 +02:00
2023-05-16 13:37:05 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-31 13:07:52 +02:00
2023-05-22 13:54:08 +02:00
2023-05-10 13:21:07 +02:00
2023-05-22 17:52:07 +02:00
2023-04-14 10:45:09 +02:00
2023-05-22 17:52:07 +02:00
2023-03-27 12:47:20 +02:00
2023-05-22 17:52:07 +02:00
2023-05-17 10:34:00 +02:00
2023-05-25 22:33:42 +02:00
2023-05-22 17:52:07 +02:00
2023-05-17 18:17:52 +02:00
2023-05-23 16:31:39 +02:00
2023-05-12 19:54:57 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-11 18:25:38 +02:00
2023-05-10 19:16:47 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-10 18:16:24 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-10 04:14:50 +02:00
2023-05-22 17:52:07 +02:00
2023-05-12 19:54:57 +02:00
2023-05-22 17:52:07 +02:00
2023-05-10 04:14:50 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-17 10:34:12 +02:00
2023-05-22 17:52:07 +02:00
2023-05-10 18:16:21 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-17 13:37:54 +02:00
2023-05-31 09:23:10 +02:00
2023-05-31 09:23:10 +02:00
2023-05-10 20:15:02 +02:00
2023-03-30 16:23:10 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-10 04:14:50 +02:00
2023-05-10 04:14:50 +02:00
2023-05-22 17:52:07 +02:00
2023-04-13 09:31:31 +02:00
2023-05-12 19:54:57 +02:00
2023-05-10 04:14:50 +02:00
2023-05-22 17:52:07 +02:00
2023-05-24 09:49:19 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-10 04:14:50 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-24 23:25:56 +02:00
2023-05-10 04:14:50 +02:00
2023-05-22 17:52:07 +02:00
2023-05-30 15:39:50 +02:00
2023-05-12 22:59:22 +02:00
2023-05-15 08:34:42 +02:00
2023-05-12 19:54:57 +02:00
2023-05-10 04:14:50 +02:00
2023-05-10 04:14:50 +02:00
2023-05-10 04:14:50 +02:00
2023-05-10 04:14:50 +02:00
2023-05-10 04:14:50 +02:00
2023-05-31 13:08:16 +02:00
2023-05-31 13:08:11 +02:00
2023-05-23 20:57:15 +02:00
2023-05-25 12:23:34 +02:00
2023-05-22 17:52:07 +02:00
2023-05-10 20:14:59 +02:00
2023-05-10 04:14:50 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-11 18:24:53 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-10 04:14:50 +02:00
2023-05-10 04:14:50 +02:00
2023-05-10 04:14:50 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-10 20:15:12 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-11 10:40:53 +02:00
2023-05-11 10:40:55 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-10 18:16:19 +02:00
2023-05-10 04:14:50 +02:00
2023-05-22 17:52:07 +02:00
2023-05-31 09:23:27 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-17 16:48:30 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-10 04:14:50 +02:00
2023-05-10 04:14:50 +02:00
2023-05-10 04:14:50 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-12 09:21:49 +02:00
2023-05-10 20:15:20 +02:00
2023-05-26 10:29:22 +02:00
2023-05-24 15:45:26 +02:00
2023-05-17 10:34:00 +02:00
2023-05-22 17:52:07 +02:00
2023-05-31 13:08:32 +02:00
2023-05-22 17:52:07 +02:00
2023-05-31 13:08:34 +02:00
2023-03-20 07:58:46 +01:00
2023-05-22 17:52:07 +02:00
2023-05-30 11:46:44 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-30 11:46:44 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-23 22:32:45 +02:00
2023-05-22 13:54:08 +02:00
2023-05-31 14:23:32 +02:00
2023-05-25 16:29:50 +02:00
2023-05-17 10:34:00 +02:00
2023-05-30 13:03:33 +02:00
2023-05-17 14:47:15 +02:00
2023-05-30 13:03:33 +02:00
2023-05-11 18:25:26 +02:00
2023-05-22 13:54:08 +02:00
2023-05-22 11:43:04 +02:00
2023-05-22 17:52:07 +02:00
2023-05-30 18:03:53 +02:00
2023-05-24 14:27:44 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 13:54:08 +02:00
2023-05-22 13:54:08 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 13:54:08 +02:00
2023-05-22 13:54:08 +02:00
2023-05-22 13:54:08 +02:00
2023-05-22 13:54:08 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 13:54:08 +02:00
2023-05-22 17:52:07 +02:00
2023-05-24 14:27:44 +02:00
2023-05-25 13:49:55 +02:00
2023-05-31 14:23:42 +02:00
2023-05-30 10:31:43 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-25 16:29:11 +02:00
2023-05-05 17:06:38 +02:00
2023-05-26 11:40:33 +02:00
2023-05-22 17:52:07 +02:00
2023-05-31 14:23:24 +02:00
2023-05-05 17:06:38 +02:00
2023-05-05 17:06:38 +02:00
2023-05-25 16:29:30 +02:00
2023-05-05 17:06:38 +02:00
2023-05-23 16:31:24 +02:00
2023-05-25 19:16:38 +02:00
2023-05-24 14:27:59 +02:00
2023-05-17 10:34:00 +02:00
2023-05-17 10:34:00 +02:00
2023-05-25 16:29:26 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-31 13:08:26 +02:00
2023-05-17 10:34:00 +02:00
2023-05-22 17:52:07 +02:00
2023-04-18 08:26:23 +02:00
2023-04-19 21:58:27 +02:00
2023-05-15 07:30:57 +02:00
2023-04-19 21:58:27 +02:00
2023-04-13 05:07:55 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 13:54:07 +02:00
2023-05-30 08:41:03 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-26 16:16:04 +02:00
2023-05-22 17:52:07 +02:00
2023-05-30 13:03:33 +02:00
2023-05-31 10:31:57 +02:00
2023-05-22 17:52:07 +02:00
2023-05-31 09:23:16 +02:00
2023-05-31 07:13:56 +02:00
2023-05-23 18:01:49 +02:00
2023-05-22 17:52:07 +02:00
2023-05-17 10:34:00 +02:00
2023-05-09 00:41:08 +02:00
2023-05-31 11:44:55 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-30 19:09:53 +02:00
2023-04-19 21:58:27 +02:00
2023-05-22 17:52:07 +02:00
2023-05-12 19:55:08 +02:00
2023-05-24 09:49:05 +02:00
2023-05-30 14:16:59 +02:00
2023-05-17 13:37:47 +02:00
2023-05-30 19:09:53 +02:00
2023-04-19 21:58:27 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-26 16:15:53 +02:00
2023-05-22 17:52:07 +02:00
2023-05-26 18:41:35 +02:00
2023-05-17 10:34:00 +02:00
2023-05-22 13:54:08 +02:00
2023-05-02 19:07:09 +02:00
2023-03-30 15:09:33 +02:00
2023-04-20 22:09:57 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-03-30 15:09:33 +02:00
2023-05-09 00:40:59 +02:00
2023-03-30 15:09:33 +02:00
2023-05-03 13:56:54 +02:00
2023-05-17 10:34:00 +02:00
2023-03-30 15:09:33 +02:00
2023-05-31 14:23:40 +02:00
2023-05-30 13:03:31 +02:00
2023-05-31 13:08:06 +02:00
2023-05-24 15:45:23 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-31 09:23:16 +02:00
2023-03-24 12:50:13 +01:00
2023-04-14 17:38:04 +02:00
2023-05-22 16:30:12 +02:00
2023-05-12 21:50:44 +02:00
2023-05-17 14:47:01 +02:00
2023-05-16 15:55:18 +02:00
2023-05-16 15:55:16 +02:00
2023-04-13 17:57:56 +02:00
2023-05-15 16:48:22 +02:00
2023-05-17 14:47:12 +02:00
2023-05-11 10:41:06 +02:00
2023-04-03 17:07:24 +02:00
2023-05-22 13:54:08 +02:00
2023-05-26 17:29:24 +02:00
2023-05-30 13:03:25 +02:00
2023-05-31 13:08:26 +02:00
2023-05-31 14:23:29 +02:00
2023-05-25 13:49:50 +02:00
2023-05-22 17:52:07 +02:00
2023-05-30 13:03:42 +02:00
2023-05-31 11:44:58 +02:00
2023-05-17 10:34:00 +02:00
2023-05-22 17:52:07 +02:00
2023-05-30 13:03:25 +02:00
2023-04-21 02:21:53 +02:00
2023-05-30 10:31:43 +02:00
2023-05-30 10:31:43 +02:00
2023-05-22 17:52:07 +02:00
2023-05-30 13:03:00 +02:00
2023-05-30 13:03:00 +02:00
2023-05-30 13:03:00 +02:00
2023-04-03 17:07:24 +02:00
2023-05-12 21:50:44 +02:00
2023-05-17 10:34:00 +02:00
2023-05-17 10:34:00 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-05 17:06:23 +02:00
2023-04-05 12:50:43 +02:00
2023-05-17 10:34:00 +02:00
2023-05-22 17:52:07 +02:00
2023-05-23 18:02:09 +02:00
2023-05-22 13:54:08 +02:00
2023-05-23 18:02:19 +02:00
2023-04-18 11:33:46 +02:00
2023-05-26 04:15:53 +02:00
2023-05-31 13:08:19 +02:00
2023-05-22 17:52:07 +02:00
2023-04-17 08:24:47 +02:00
2023-05-23 18:02:03 +02:00
2023-05-22 17:52:07 +02:00
2023-05-30 10:31:43 +02:00
2023-05-30 18:03:53 +02:00
2023-05-22 17:52:07 +02:00
2023-05-30 10:31:43 +02:00
2023-05-17 10:34:00 +02:00
2023-05-22 17:52:07 +02:00
2023-04-05 12:50:43 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 13:54:08 +02:00
2023-05-17 10:34:00 +02:00
2023-05-15 15:07:13 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-04-24 08:38:11 +02:00
2023-05-26 16:15:56 +02:00
2023-05-22 17:52:07 +02:00
2023-05-31 10:31:56 +02:00
2023-05-22 17:52:07 +02:00
2023-05-22 17:52:07 +02:00
2023-05-23 08:42:15 +02:00
2023-05-22 17:52:07 +02:00