Stock Picking Batch Move Position
stock_picking_batch_move_position · OCA/stock-logistics-workflow
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 19.0
Heuristic over the facts below, not an audit · How it's computed
Description
Adds the batch position on stock moves: the position of the move in its batch transfer, numbered 1, 2, 3, ... The moves of a transfer stay together, and the transfers follow their order in the batch.
Batch positions are renumbered automatically when moves are added to or removed from the transfers of a batch, and when transfers are added to a batch or reordered in it. A transfer added to a batch goes after the transfers already in it, so the existing batch positions don't move. A split move keeps the batch position of the original one. The moves sorted by batch position follow the numbers (10 after 9).
The position of the moves in their transfer comes from stock_move_position.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_picking_move_tree_inherited_inherit |
stock_picking_batch.picking.move.list.inherit | stock.move | list | Inherits stock_picking_batch.view_picking_move_tree_inherited |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
-
batch_positionCharcopy=Falsereadonly=True
-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
No new fields.
Public methods (2)-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
No new fields.
Public methods (1)-
action_renumber_lines_positions(self)Renumber the batch's moves (UI action).