Stuck in transit
Is any item stuck in transit between the companies?
Verified Metric version 1.0.0
What it is
Today's stock in transit locations (Odoo's "Transit" location type, such as inter-company transit): it left one place and has not been received at the other. Each row has the product, the transit location, the quantity, since when it has been there, how many days and the last document that took it there. The row belongs to the company that sent the item. The total is the quantity in transit.
What it is not
- It is not the delivery to the customer: the customer location is not transit.
- It is not what is about to be transferred: only what has left and not arrived.
- It does not say the item is lost: a few days in transit may just be the normal way.
Pitfalls this metric handles
The traps a hasty calculation falls into — and how this metric avoids each one.
Transit without a company
- The mistake
- Filtering the transit stock by company.
- Why it happens
- Inter-company transit has no company, and the filter would hide everything.
- How we handle it
- The row belongs to the company that sent it: the one of the last done move into transit.
Normal transit counted as stuck
- The mistake
- Treating all stock in transit as a problem.
- Why it happens
- The item that left today is still on its way.
- How we handle it
- Each row says how many days it has been there; more than 3 days goes in the alert.
Where the number comes from
Audit trail
- Odoo model
stock.quant + stock.location + stock.move- Fields
stock.location.usage = transit,stock.quant.quantity,stock.quant.in_date,stock.move.location_dest_id,stock.move.reference- Why this path
- The stock in the transit location is what Odoo shows in Inventory → Reporting → Stock, filtering the transit location. The incoming date (in_date) says since when it is there.
How you can adjust it
| Parameter | What it does | Options |
|---|---|---|
| Companies | company ids, always explicit | — |
| Items listed | how many rows to show on screen; the Excel file carries all | — |
Validation
To be validated on a real database. The method comes from a script that already ran in a customer's operation, and the calculation passes the automated tests against the demo database. IntData has not yet checked it on a real database; until then, check the first result in Odoo using the path in the audit trail.
- Date
- November 10, 2026
- Checked against
- Demo database, with synthetic stock in inter-company transit. To be validated on a real database.
- Expected Odoo versions
14.0,15.0,16.0,17.0,18.0,19.0,20.0- Note
- The fields read and the "transit" location type exist from 14 to 19 and on master (the reference for 20), checked in the official code. It does not use read_group.
Need a variation of this metric, or another one that does not exist yet?