Repository
OCA/stock-logistics-reservation · module folder · Try on Runboat
Module version
1.0.1
Category
Stock Management
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/stock-logistics-reservation
Last tracking update
2026-08-07 08:43:06
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Sébastien Alix, Ruchir Shukla, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
requests
System dependencies
None
Required by
None
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).

Code Analysis

Views touched (0)

No views found for this module.

HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (0)

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, ...

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…