Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

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

by
Ing. Rolando Pérez Rebollo
- 14/01/2026 14:50:25

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


Follow-Ups