openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #03291
Re: reorderable lines on purchase.orders, account.invoice, stock.picking
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?
For v7 this stuff could live inside 2 trivial modules.
Cheers,
[1] rev.9463 revid:mat@xxxxxxxxxxx-20130920095026-qv0o2ohcys8druf5
[2] rev.9409 revid:mat@xxxxxxxxxxx-20130903125900-wl1r1etx9pyhe185
Follow ups
References