summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2017-11-28 10:23:18 +0100
committerMartin Geubelle <mge@odoo.com>2017-12-28 12:05:25 +0100
commit1c7e0df5a597117891643cbf160f8b1d98019588 (patch)
treee7c94a37dc75e7358b91a879132f283787a52491 /addons/web/static/src/js/fields/basic_fields.js
parentcad10e6b78ec86e6cbc66e09a0983b772d19a64f (diff)
[FIX] web: deal with same sequence in editable list
Resequencing records with the same sequence wasn't correctly working in the editable list because we only care about the range between the swapped ids. In some cases, this isn't good enough. For example, if we have the records 1,2,3 with sequence field = 10,10,10, then, swapping records 1 and 2 should lead to resequencing 3 with the sequence values 11,10,12 (to guarantee that the third item is after the previous 2). Resequence now checks if the list increases or decreases without interruption to create the subset that must be changed ; otherwise the whole list is changed.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions