summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.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 09:38:03 +0000
commit8f9e1e40a32748e576084320b4f9a4c1165b7a10 (patch)
treee9c5ed0326a79767e97f0d6db8e76b414de1873b /addons/web/static/src/js/views/basic/basic_controller.js
parent95b4f2ab4b5698ab3a28c9c35ac8da6fb6def983 (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. This commit must be forwardported up to 12.2, not further. Issue 2027356 closes odoo/odoo#34771 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions