Stock Move Auto Assign
stock_move_auto_assign · OCA/stock-logistics-reservation
OCA/stock-logistics-warehouse 13.0–16.0 → OCA/stock-logistics-reservation 18.0
-
Security25/25No findings
-
Activity12/25Last human commit 18 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 4 Odoo series since 13.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `SELECT id FROM stock_picking WHERE id IN %s FOR UPDATE NOWAIT` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Automatically check availability of stock moves when a move is set to "done".
It uses queue jobs to verify the availability in order to have a minimal impact on the user operations.
The conditions to trigger the check are:
- A move is marked as done
- The destination locations of the move lines are internal
- The move doesn't have successors in a chain of moves
At this point, jobs are generated:
- One job per product
- Any move waiting for stock in a parent (or same) location of the internal destination locations from the done move has its availability checked
Only one job is generated for an identical set of (product, locations).
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (1)-
moves_auto_assign(self, locations)Job trying to reserve moves based on product and locations When a product has been added to a location, it searches all* the moves with a source equal or above this location and try to reserve them. * all the moves that would make sense to reserve, so no chained moves, no MTO, ...
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…