Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: RFC: Manual ordering of pickings in Shipment Advice (One2many)

by
BCIM srl, Jacques-Etienne Baudoux
- 14/01/2026 15:36:12
Hello rrebollo,

As you created an issue, here is the link for anyone that would like to comment on this


kr
J-E

Le mer. 14 janv. 2026 à 14:52, Rolando Pérez Rebollo <notifications@odoo-community.org> a écrit :

Hello OCA contributors,

We are using shipment_advice, an OCA addon from stock-logistics-transport, which groups stock.picking records via a One2many relation.

Constraints

  • One Shipment Advice → many pickings

  • Each picking belongs to exactly one Shipment Advice

  • The One2many relation is core to the addon and cannot be changed

Problem
We need to implement a manual, user-defined ordering of pickings within a Shipment Advice.

  • Order is arbitrary

  • Not derived from existing fields (dates, priority, state, etc.)

  • Must be persistent and respected in views and business logic

  • Native One2many does not support manual ordering

RFC
What is the recommended Odoo/OCA pattern to:

  • Persist a manual order per Shipment Advice

  • While keeping the existing One2many relation untouched

Feel free to challenge any of the assumptions or constraints above if you see a better approach.

Thanks,

\rrebollo


_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference