[IMP] web: fix default sequence for list with handle

The sequence had a static default value, but when there is an handle, it's important that new items are added at the top or the bottom of the list.

This is a rare case where the defaul_get from the server will be ignored by the view for a certain field.

This will work:
- both in editable mode (inline) and in dialog mode,
- both for X2Many and standalone list.
This commit is contained in:
Sébastien Theys
2018-06-29 10:39:42 +02:00
parent 217fee2636
commit b2c1d5ede2
9 changed files with 312 additions and 16 deletions
+3 -1
View File
@@ -1478,9 +1478,11 @@ order.
- handle (HandleWidget)
This field's job is to be displayed as a *handle* in a list view, and allow
This field's job is to be displayed as a *handle* in a list view, and allows
reordering the various records by drag and dropping lines.
.. warning:: Having more than one field with a handle widget on the same list is not supported.
- Supported field types: *integer*