diff options
| author | Denis Ledoux <dle@odoo.com> | 2019-03-11 09:42:13 +0000 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2019-03-11 17:22:09 +0000 |
| commit | 570f8ee71e2c35537299ffcd3e592ff0b76e9dbb (patch) | |
| tree | e8ecf56b857133b6bbcb743db7837eede042cc58 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 4231103cc99966cc61325454766c662a75fcf7ef (diff) | |
[FIX] account: bank statement confirm performance improvement
`fast_counterpart_creation` creates new move lines.
The ORM doesn't know if these new move lines changed
or not the value of the field `journal_entry_ids` of each
of the bank statement lines, and for that reason
this field got invalidated from the cache at each iteration,
and the value was prefetched as soon as
`st_line.journal_entry_ids.ids` was asked.
Storing the value of this field for each line in the dict
`journal_entries` overcome this problem as we get the value
from this dict during the loop.
Of course, this relies on the fact the value of `journal_entry_ids`
doesn't change during the loop
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
