Transferred with stock at the origin
What was already transferred to the other company and still shows stock at the origin?
Verified Metric version 1.0.0
What it is
Products that left an internal location of the company for a transit location in the last 30 days (the way of the transfer to the other company) and still have stock in the same location they left. Each row has the product, the origin location, how much was transferred, the stock still there, the date of the last departure and the document. The total is the number of rows.
What it is not
- It does not say the stock is wrong: the location may have received the product again after it left.
- It is not what is stuck in transit: for that, the "Stuck in transit" metric.
- It does not look at transfers inside the same company, from one internal location to another.
Pitfalls this metric handles
The traps a hasty calculation falls into — and how this metric avoids each one.
Move quantity
- The mistake
- Reading the same quantity field in every version.
- Why it happens
- Up to 16 the done quantity is quantity_done; from 17 on, quantity.
- How we handle it
- The metric reads the field the connection's version has.
Stock that came back
- The mistake
- Calling every leftover at the origin an error.
- Why it happens
- The location may have received the product after the departure.
- How we handle it
- The row has the date of the last departure; the check is on the shelf.
Where the number comes from
Audit trail
- Odoo model
stock.move + stock.location + stock.quant- Fields
stock.move.location_id,stock.move.location_dest_id (usage = transit),stock.move.quantity | quantity_done,stock.move.date,stock.quant.quantity- Why this path
- The done move is the departure Odoo recorded (Inventory → Reporting → Moves History); stock.quant is today's stock in the location.
How you can adjust it
| Parameter | What it does | Options |
|---|---|---|
| Companies | company ids, always explicit | — |
| Window in days | the window of departures, in days (default 30) | — |
| 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 transfers to 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
- Checked in the official code from 14 to 19 and on master (the reference for 20). The move quantity is quantity_done up to 16 and quantity from 17 on. It does not use read_group.
Need a variation of this metric, or another one that does not exist yet?