diff options
| author | Christophe Matthieu <chm@odoo.com> | 2017-11-28 10:23:18 +0100 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2017-12-28 12:05:25 +0100 |
| commit | 1c7e0df5a597117891643cbf160f8b1d98019588 (patch) | |
| tree | e7c94a37dc75e7358b91a879132f283787a52491 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | cad10e6b78ec86e6cbc66e09a0983b772d19a64f (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/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
