New reception report added for non-outgoing transfers. This is intended to support easier stock allocations by allowing dynamic MTO assignment/unassignment, e.g. if we have an incoming transfer with products we want to assign to an existing outgoing transfer, then we can use the report to create a MTO link to the specific outgoing moves. To support this assignment flow, the report also allows printing of labels to place on the product so stock workers know which transfer/MO the product has been assigned to. Expected use case is when a product is purchased to fulfil a sale. Demo data has been added so reception report can be immediately seen/used for this flow. Implementation Notes: - Report has been made flexible to work with batch transfers. - Only done moves can be assigned to moves that already have quants reserved (prevents undesired behavior + this makes sense logically) - Confirmed (+ Done and everything inbetween) moves can be assigned to any confirmed moves that are not already assigned. - Report does not affect quant reservation/unreservation at all. It works only with linking moves (i.e. move_orig_id/move_dest_id) so move/transfer linkage traceability is stored within db (i.e. this isn't possible with quants) Limitations: To keep code simple for now, this assignment flow will break in certain cases: 1. Done amount of an assigned move is less than the Demand amount (linked move will not autoreserve correctly when assigned move is validated, same issue already occurs in multi-step transfer). 2. If a linked move is unreserved after its assigned move is validated, then another move can reserve its quants and its assignment link will not be accurate. 3. Already reserved SNs + assign move, may lead to mismatching SNs between report and what's actually reserved. 4. Changing a linked move's Demand amount after a move is assigned to it. 5. Potential moves to assign to are only checked for being in same warehouse, not in a matching source location to destination location. User is expected to make this match on their own. Task: 2500844 ENT PR: odoo/enterprise#18268 Upgrade PR: odoo/upgrade#2731 closes odoo/odoo#70669 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
8 lines
246 B
Python
8 lines
246 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import mrp_report_bom_structure
|
|
from . import report_stock_forecasted
|
|
from . import report_stock_reception
|
|
from . import report_stock_rule
|