summaryrefslogtreecommitdiff
path: root/addons/transifex
diff options
context:
space:
mode:
authorJulien Castiaux <juc@odoo.com>2019-06-28 12:17:41 +0000
committerJulien Castiaux <juc@odoo.com>2019-06-28 14:36:18 +0000
commit1882c24195ec9ce934edc5342f699fce624bbc54 (patch)
tree5d0d2055b95ed74d1ceecbdb205157cdc1460fdc /addons/transifex
parent0b8c43070613ab92bdf6c6ece193447419009c85 (diff)
[FIX] base: respect attachment search limit
Configure two companies, add a bunch of attachments to each company so at least one has more attachments than the default 80 search limit. List the attachments of that company, only the 7à-ish firsts are displayed and the pager is disabled. The `_search` method is override in `ir.attachment` to filter the original record set. If the original record set had reached the limit, the filter may only return a subset whose length is lower than the limit, this trick the different JS views making them think there are no more records to return and disable the pager. The fix has been to recursively re-search until the subset length is equal to the limit. opw-2025940 closes #34287 closes odoo/odoo#34450 Signed-off-by: Julien Castiaux <Julien00859@users.noreply.github.com>
Diffstat (limited to 'addons/transifex')
0 files changed, 0 insertions, 0 deletions