diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2017-01-13 14:37:23 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2017-01-18 14:30:57 +0100 |
| commit | 2d753ab5ec3a2e99da5864a1ba20bd834d5d465e (patch) | |
| tree | 3a88bf55d3088f52cb81e713cf5c9891873b5b7f /addons/web/static/src/js/widgets/data_export.js | |
| parent | 6825ddf9ad093ad47a964bfd78d95563dacd01f0 (diff) | |
[FIX] web: handle widget order and custom sequence
An editable list can be drag-and-drop sorted by:
- displaying a sequence field,
- displaying a field with the `handle` widget
At first it was only working if the list was not specifically ordered,
but with 26bf35260 it also worked if the list was ordered on `sequence`
or `sequence ASC`.
This commit changes this so it works:
- if the list is not ordered (same as the original intention),
- if the list is ordered by the sequence field (widget `handle` or sequence)
This allows to have a custom model (on which we can't define _order) to be
ordered on a custom field.
This also remove a far-fetched oddity such as having the view ordered by
sequence but having a custom sequence field before `sequence`.
opw-704612
Diffstat (limited to 'addons/web/static/src/js/widgets/data_export.js')
0 files changed, 0 insertions, 0 deletions
