summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2019-07-10 12:49:19 +0000
committerAaron Bohy <aab@odoo.com>2019-07-11 10:43:42 +0000
commitcea3f51e2f5cfdf44c657237e664ef397a0aa35f (patch)
tree62a0d8b04ba6c7e08f518b602e9cab6b44581148 /addons/mail/static/src/js
parent646ccfc5304af697b27f4fc308fbd12ee81a4947 (diff)
[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>
Diffstat (limited to 'addons/mail/static/src/js')
0 files changed, 0 insertions, 0 deletions