Files
stock-logistics-warehouse/stock_move_auto_assign/__manifest__.py
Guewen Baconnier d617c4ea4d Add stock_move_auto_assign
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).
2021-10-08 07:13:01 +07:00

21 lines
589 B
Python

# Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Move Auto Assign",
"summary": "Try to reserve moves when goods enter in a location",
"version": "13.0.1.0.1",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Stock Management",
"depends": [
"stock",
# OCA/queue
"queue_job",
],
"data": [],
"installable": True,
"development_status": "Beta",
"license": "AGPL-3",
}