summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authordhr-odoo <dhr@openerp.com>2014-10-31 14:18:35 +0530
committerMartin Trigaux <mat@odoo.com>2015-04-22 12:14:33 +0200
commitcb5f00f58016d087cf5387c3eadf9144f45a0397 (patch)
tree528c3a6d7930a1cf89fa6f5598c01dc50659347e /addons/web/static/src/xml/base.xml
parentecdaf89469654214ae07aa447fde14a591f5d9a6 (diff)
[FIX] orm: ordering on >1000 records
When reading over IN_MAX (currently 1000) records, the select is slip into subsets of IN_MAX records. However the list of ids was split using set() method which removes order that may have been pass. The subsets are ordered using _order attribute but the subsets were not ordered between themself. This is an issue in case of browsing a o2m field with more than 1000 lines as it will return sorted blocked but the order of the blocks is the order of the contained ids (e.g. split(2, [5, 4, 3, 2, 1]) -> [[2,1], [4,3], [5]]). Removes the set() to make sure the order of the given ids is preserved. opw 616070, linked to #439
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions