Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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.
- Loading branch information
Showing
1 changed file
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters