summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2017-12-04 17:38:05 +0100
committerRaphael Collet <rco@odoo.com>2017-12-06 15:56:25 +0100
commit6da1c3ac4c036eac289597602976538e243cb939 (patch)
tree437a89a855de0be60c0e81c4939a5a88a23e58c7 /addons/web/static/src/js/views/basic/basic_controller.js
parenta9a1895b31e2b9c269a422c13f2bca0e97e90234 (diff)
[FIX] fields: performance of convert_to_onchange on x2many fields
Suppose we convert a x2many field `foo_ids` with a many2one sub-field `bar_id`. The conversion of the values of `bar_id` generates pairs `(id, name)`. Before this patch, the method `name_get` is invoked on every value, one by one. Rewrite the code to ensure that `name_get()` is invoked on all values at once.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions