Géry Debongnie
e062f89ed5
[FIX] web: prevent crash in some cases (o2m)
...
Recent works in the orm (see [1] for example) changed the behaviour of
the server in the case of onchanges: it tries to optimize Odoo by
sending a minimal diff to the web client in onchanges.
Concretely, this means that the web client receives commands 4 (link to)
instead of command 1 (update + record data). It also sends a minimal
diff in that case. This is a big issue for the web client, because it relied
on the knowledge of the data from the command 1 to be able to evaluate some
modifiers.
The good news is that we can mitigate the issue in one case: we do not
actually need to evaluate the modifiers in the case of a command 4
(comming from the server), because we can assume that the record is
valid. So, we simply bypass the check in that case.
Note that this should fix most of the problem, but a deeper problem
still remains: a crash can still happen when an onchange modifies a
record in a one2many (but in a different page), and we also have a
modifier which needs to be evaluated.
opw: #1904514
[1] https://github.com/odoo/odoo/pull/29086
closes odoo/odoo#29172
closes odoo/odoo#29086
2018-11-30 13:34:54 +00:00
..
2018-11-30 07:43:35 +00:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-06-04 18:06:44 +02:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-11 03:16:11 +01:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-11 03:16:11 +01:00
2018-11-11 03:16:11 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-11 03:16:11 +01:00
2018-11-25 03:17:33 +01:00
2018-11-11 03:16:11 +01:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-11 03:16:11 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-15 18:15:47 +01:00
2018-11-18 03:15:42 +01:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-22 12:22:36 +00:00
2018-11-18 03:15:42 +01:00
2018-11-27 11:00:55 +00:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-08-10 09:39:44 +02:00
2018-08-27 13:26:20 +02:00
2018-07-13 15:10:12 +02:00
2018-07-13 15:10:12 +02:00
2018-09-28 13:21:56 +00:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-07-24 10:45:46 +02:00
2018-07-24 10:45:46 +02:00
2018-07-24 10:45:46 +02:00
2018-09-17 14:51:13 +02:00
2018-10-18 15:30:59 +02:00
2018-07-24 10:45:46 +02:00
2018-07-24 10:45:46 +02:00
2018-10-31 18:31:53 +01:00
2018-07-24 10:45:46 +02:00
2018-09-26 11:28:33 +02:00
2018-09-26 11:28:33 +02:00
2018-07-26 15:15:12 +02:00
2018-07-26 15:14:17 +02:00
2018-07-26 15:14:17 +02:00
2018-11-29 08:14:11 +00:00
2018-09-17 14:15:46 +02:00
2018-07-24 10:45:46 +02:00
2018-07-16 16:25:59 +02:00
2018-06-05 15:10:45 +02:00
2018-08-21 16:00:40 +02:00
2018-06-04 11:30:49 +02:00
2018-09-20 12:34:51 +00:00
2018-09-14 16:42:55 +02:00
2018-09-28 19:10:04 +02:00
2018-09-28 19:10:04 +02:00
2018-11-01 02:44:41 +01:00
2018-09-14 11:20:38 +02:00
2018-06-13 18:13:48 +02:00
2018-07-24 10:45:46 +02:00
2018-07-24 10:45:46 +02:00
2018-10-31 17:23:32 +01:00
2018-07-24 10:45:46 +02:00
2018-09-03 12:05:30 +02:00
2018-11-07 08:37:41 +00:00
2018-10-31 17:23:32 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-28 09:11:28 +00:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-11 03:16:11 +01:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-30 09:27:37 +00:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-11 03:16:11 +01:00
2018-11-25 03:17:33 +01:00
2018-11-11 03:16:11 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-11 03:16:11 +01:00
2018-11-11 03:16:11 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-11 03:16:11 +01:00
2018-11-25 03:17:33 +01:00
2018-11-19 15:23:00 +01:00
2018-11-28 04:51:02 +00:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-23 09:48:08 +00:00
2018-11-28 12:34:55 +00:00
2018-11-18 03:15:42 +01:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-15 18:15:47 +01:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-14 10:38:57 +00:00
2018-11-11 03:16:11 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-25 03:17:33 +01:00
2018-11-30 13:34:54 +00:00
2018-11-11 03:16:11 +01:00
2018-11-29 16:41:33 +00:00
2018-11-04 03:16:30 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-29 16:41:33 +00:00
2018-11-18 03:15:42 +01:00
2018-11-11 03:16:11 +01:00
2018-11-25 03:17:33 +01:00
2018-11-18 03:15:42 +01:00
2018-11-15 18:15:47 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-25 03:17:33 +01:00
2018-08-01 02:42:16 +02:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-11 03:16:11 +01:00
2018-11-11 03:16:11 +01:00
2018-11-11 03:16:11 +01:00
2018-11-11 03:16:11 +01:00
2018-11-11 03:16:11 +01:00
2018-11-25 03:17:33 +01:00
2018-11-11 03:16:11 +01:00
2018-11-11 03:16:11 +01:00
2018-11-14 11:17:15 +00:00
2018-11-18 03:15:42 +01:00
2018-11-11 03:16:11 +01:00
2018-11-19 13:46:02 +00:00
2018-11-11 03:16:11 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00
2018-11-18 03:15:42 +01:00