Aaron Bohy
cea3f51e2f
[FIX] web: batch read of m2m in o2m after onchange
...
Let's assume a one2many field (editable list) in a form view with
a many2many (e.g. many2many_tags), and an onchange on the one2many
such that, when a row is added to the relation, the server returns
update commands for (a subset of) the records being already in the
relation. For thoses updated records, the many2many field needs to
be read (the onchange only returns the ids in the relation).
Before this rev., the many2many field was read independently for
each record in the one2many. This could cause a performance issue
on large relations. For instance, this was the case on
account.invoice records with a lot of lines.
Issue 2027356
closes odoo/odoo#34785
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com >
2019-07-11 10:43:42 +00:00
..
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-06-16 06:15:35 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-16 06:15:35 +02:00
2019-06-30 01:17:50 +02:00
2019-07-01 02:42:17 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-12 12:39:50 +00:00
2019-06-16 06:15:35 +02:00
2019-07-01 02:42:17 +02:00
2019-07-01 02:42:17 +02:00
2019-06-23 06:15:20 +02:00
2019-06-12 12:39:50 +00:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-06-30 01:17:50 +02:00
2019-06-30 01:17:50 +02:00
2019-06-30 06:15:32 +02:00
2019-07-01 02:42:17 +02:00
2019-07-05 16:14:48 +02:00
2019-07-01 02:42:17 +02:00
2019-07-01 13:09:38 +00:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-06-23 01:17:13 +02:00
2019-06-23 06:15:20 +02:00
2019-06-30 06:15:32 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-06-23 06:15:20 +02:00
2019-06-30 06:15:32 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-30 01:17:50 +02:00
2019-06-30 03:07:11 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-23 01:17:13 +02:00
2019-07-05 16:14:48 +02:00
2019-06-30 01:17:50 +02:00
2019-07-01 02:42:17 +02:00
2019-06-14 15:20:01 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-06-23 06:15:20 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-06-16 06:15:35 +02:00
2019-06-12 12:39:50 +00:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-06-23 03:06:47 +02:00
2019-06-16 06:15:35 +02:00
2019-07-07 06:07:54 +02:00
2019-06-12 12:39:50 +00:00
2019-06-16 06:15:35 +02:00
2019-07-01 02:42:17 +02:00
2019-07-01 02:42:17 +02:00
2019-06-30 06:15:32 +02:00
2019-05-09 11:12:22 +02:00
2019-07-05 11:13:53 +02:00
2019-06-23 06:15:20 +02:00
2019-07-01 02:42:17 +02:00
2019-06-23 01:17:13 +02:00
2019-06-30 06:15:32 +02:00
2019-05-22 13:39:59 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-06-18 11:07:00 +00:00
2019-06-03 15:49:31 +02:00
2019-05-10 11:51:08 +00:00
2019-05-10 11:52:58 +00:00
2019-07-09 11:56:05 +00:00
2019-06-21 15:16:54 +02:00
2019-05-27 12:45:51 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-06-19 10:34:47 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-06-21 15:16:54 +02:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-06-27 18:01:07 +02:00
2019-07-05 11:13:53 +02:00
2019-04-25 15:47:09 +02:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-06-03 10:53:09 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-24 05:05:13 +00:00
2019-05-15 13:27:02 +00:00
2019-05-10 11:52:58 +00:00
2019-06-13 10:59:05 +00:00
2019-05-10 11:52:58 +00:00
2019-06-21 15:16:54 +02:00
2019-07-01 02:42:17 +02:00
2019-06-14 15:20:01 +02:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-06-21 11:06:04 +02:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-05-10 11:52:58 +00:00
2019-06-03 15:49:31 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-30 06:15:32 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-30 01:17:50 +02:00
2019-06-23 06:15:20 +02:00
2019-06-12 12:39:50 +00:00
2019-06-23 06:15:20 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-16 01:18:49 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-12 12:39:50 +00:00
2019-06-12 12:39:50 +00:00
2019-06-12 12:39:50 +00:00
2019-06-16 06:15:35 +02:00
2019-06-16 06:15:35 +02:00
2019-07-01 02:42:17 +02:00
2019-06-23 06:15:20 +02:00
2019-06-30 01:17:50 +02:00
2019-06-23 06:15:20 +02:00
2019-06-23 06:15:20 +02:00
2019-06-23 06:15:20 +02:00
2019-06-23 06:15:20 +02:00
2019-06-23 06:15:20 +02:00
2019-06-23 06:15:20 +02:00
2019-07-07 06:07:54 +02:00
2019-06-23 06:15:20 +02:00
2019-06-30 03:07:11 +02:00
2019-07-05 16:14:48 +02:00
2019-07-07 06:07:54 +02:00
2019-07-05 16:14:48 +02:00
2019-07-04 17:35:07 +02:00
2019-07-01 06:45:04 +00:00
2019-07-05 16:14:48 +02:00
2019-06-16 06:15:35 +02:00
2019-07-01 02:42:17 +02:00
2019-06-23 01:17:13 +02:00
2019-06-16 06:15:35 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-07-01 02:42:17 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-06-30 01:17:50 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-16 06:15:35 +02:00
2019-07-05 16:14:48 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-27 19:14:28 +02:00
2019-07-01 02:42:17 +02:00
2019-06-23 06:15:20 +02:00
2019-06-30 01:17:50 +02:00
2019-06-27 19:10:09 +02:00
2019-06-24 10:58:32 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-23 06:15:20 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-06-30 06:15:32 +02:00
2019-06-30 06:15:32 +02:00
2019-06-30 06:15:32 +02:00
2019-06-30 06:15:32 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-12 12:39:50 +00:00
2019-06-12 12:39:50 +00:00
2019-06-12 12:39:50 +00:00
2019-05-19 01:16:49 +02:00
2019-06-16 03:07:16 +02:00
2019-06-30 01:17:50 +02:00
2019-06-30 06:15:32 +02:00
2019-07-07 06:07:54 +02:00
2019-07-11 10:43:42 +00:00
2019-06-23 01:17:13 +02:00
2019-07-07 06:07:54 +02:00
2019-06-16 06:15:35 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-06-16 06:15:35 +02:00
2019-06-16 06:15:35 +02:00
2019-07-01 02:42:17 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-06-24 14:48:54 +02:00
2019-06-12 12:39:50 +00:00
2019-06-16 06:15:35 +02:00
2019-07-01 02:42:17 +02:00
2019-07-01 02:42:17 +02:00
2019-06-16 06:15:35 +02:00
2019-06-12 12:39:50 +00:00
2019-06-23 06:15:20 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-06-16 06:15:35 +02:00
2019-07-11 07:14:05 +00:00
2019-07-07 06:07:54 +02:00
2019-07-07 06:07:54 +02:00
2019-07-01 02:42:17 +02:00
2019-07-01 02:42:17 +02:00