On 09/24/2013 10:33 AM, Alexandre Fayolle wrote:
* For invoices, the sequence field is there on the lines but not
editable, and only set by default from sale.orders AFAICT.
The preferred method to allow reordering lines is to simply add the
`sequence` field in the editable list view, using widget="handle",
then not to put it in the form view of the lines.
It seems to me this was added on both Supplier[1] and Customer[2]
invoice lines in 7.0, so no customization should be needed in this case.
It would make sense to contribute the sequence fields to Pickings and
possibly POs in trunk (+sync code), as users expect this information
to be propagated during the whole ordering-invoicing-delivery flow.
By default I would not show the sequence and handle inside pickings
though, but only use it to order the stock moves.
However this conflicts with the current _order for moves, which is set
to 'date_expected desc, id' and is useful when moves are displayed
outside of their picking (quite common) - the sequence being relative
to the picking/context. Perhaps using
_order = 'date_expected desc, sequence, id'
would give an acceptable result in most cases?