Skip to content

[ADD] purchase_stock_transit_receipt : receive purchases through a valued incoming transit location - #3240

Open
metaminux wants to merge 6 commits into
OCA:18.0from
akretion:18.0-add-purchase_stock_transit_receipt
Open

metaminux wants to merge 6 commits into
OCA:18.0from
akretion:18.0-add-purchase_stock_transit_receipt

Conversation

@metaminux

@metaminux metaminux commented Oct 27, 2026 •

Copy link
Copy Markdown

Summary

New module purchase_stock_transit_receipt: a purchase can be received in the buyer's stock as soon as the vendor ships the goods (imports by sea, intercompany shipments), so goods in transit are valued and inventoried while not yet available.

 Vendor
    │  Transit receipt (vendor → Incoming transit), validated at vendor shipment
    ▼
Incoming transit       # transit location of the company, outside the warehouse: valued, not reservable
    │  push rule
    ▼
 Warehouse reception   # usual 1, 2 or 3 steps, unchanged
  • Every warehouse gets an Incoming transit location and a Transit receipt operation type (post_init_hook for existing warehouses).
  • Incoterms get a Transit Receipt flag: on a purchase order, the operation type follows partner + incoterm (Transit receipt if flagged, usual receipt otherwise), still editable by hand.
  • purchase.order.line.qty_received moves only when goods leave the Incoming transit into the warehouse (returns decrease it). Kits (purchase_mrp) keep their own computation.
  • Hook for other modules: purchase.order._requires_transit_receipt().

Design precedent: stock_route_transit (OCA/stock-logistics-transport, 8.0 to 10.0, not migrated), without its new reception_steps values: the transit step sits before any existing reception setup. Code pattern for per-warehouse types and push rules: stock_warehouse_resupply_route_push (stock-logistics-warehouse 18.0).

Used by OCA/multi-company#1084 (purchase_sale_stock_inter_company_transit_receipt): the seller's delivery validates the buyer's Transit receipt.

cc @sebastienbeau

@OCA-git-bot OCA-git-bot added series:18.0 mod:purchase_stock_transit_receipt Module purchase_stock_transit_receipt labels Oct 27, 2026
@metaminux
metaminux force-pushed the 18.0-add-purchase_stock_transit_receipt branch from e474946 to a8e604e Compare October 27, 2026 01:47
@metaminux metaminux changed the title [ADD] purchase_stock_transit_receipt : receive purchases through a va… [ADD] purchase_stock_transit_receipt : receive purchases through a valued incoming transit location Nov 9, 2026
@metaminux
metaminux force-pushed the 18.0-add-purchase_stock_transit_receipt branch from fd14466 to b492622 Compare November 9, 2026 23:45
@metaminux
metaminux force-pushed the 18.0-add-purchase_stock_transit_receipt branch from 412e71c to 44323ac Compare November 18, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:purchase_stock_transit_receipt Module purchase_stock_transit_receipt series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants