summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2020-03-03 12:00:43 +0000
committerAaron Bohy <aab@odoo.com>2020-03-09 14:14:39 +0000
commit8a52f10ceb9e3a70cf729e511a6962bbed952333 (patch)
tree9b2363f33713deee8a85871b864bffd82785c1d1 /addons/web/static/src/js/fields
parenta9cebd5acbba40ae63aa9f986d9bab39b2112f92 (diff)
[FIX] web: BasicModel: always set a valid limit
When x2many fields are displayed with widgets like many2many_tags, there is no limit on the number of related records to fetch and display. In this case, the 'limit' attribute on the datapoints is undefined. This could lead to weird issues when the limit is used in computation, e.g. var index = list.offset + list.limit; // = NaN There are several occurrences of the above examples in the code, which can be observed in specific scenarios, e.g. the one encoded in the test. In this scenario, when the bug occurs, new records added to editable list views are inserted on top (even if the list is editable="bottom"), but the edited row is the last one. Issue reported on task 2189529
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions