diff options
| author | len-odoo <len@odoo.com> | 2018-12-07 08:59:23 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-12-19 13:03:46 +0000 |
| commit | 9186f433f1f4847646700d2289d0d8aad489bf48 (patch) | |
| tree | 16cffc0cf78f522187c2e61268afcdf359193ef4 /addons/web/static/src/js/views/basic/basic_view.js | |
| parent | 3d119415a2e87b75abf8fbd77ace538cdf18a112 (diff) | |
[FIX] web: read records up to list limit
Fine-tuning of commit e7fab234201e357da52c3576ad2e8fc9ceee9359
In a one2many with more than one page with a limit of k records, add a line l.
It increments the list limit to k+1. Remove a line above (of index <= k).
It will try to load a line l' to replace it, that it will find on page 2.
However when deciding if it should read missing fields on that record, it will
scan at most u records, skipping virtual ids.
Here u is the min between the current number of lines and the list limit
without the temporary increase due to the added record.
Since there are at least two pages, u = k.
However since l is in the list at index k, then l' won't be read, and since it
was on page 2 its data hasn't been loaded.
Therefore the js would traceback when trying to evaluate it.
opw 1913361
closes odoo/odoo#29338
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_view.js')
0 files changed, 0 insertions, 0 deletions
