Modules / Inventory
Stock & warehouses
Where every item is and how many you have: warehouses and their shelves, goods received from suppliers, picked and delivered to customers, moved between shelves and sites, and counted, with every movement recorded so the quantity on a shelf and the value of the stock always add up, and nobody sells the last unit twice.
People ask for it as: “how many do we have in stock”, “which shelf is it on”, “we sold something we didn't have”, “stock take”, “goods in, goods out”, “what is our stock worth”, “batch numbers”, “serial numbers”, “first expiry first out”, “cycle count”, “reorder point”, “stock at the customer”, “consignment stock from the supplier”, “standard cost”, “scrap”
Who uses it
| Role | Does | Sees |
|---|---|---|
| Whoever runs the warehouse (operations lead, the owner in a small firm) | sets up warehouses, zones and bins, putaway rules and pick sequence, decides which products are tracked by lot or serial and how lots are picked, plans transfers, batches deliveries, starts counts (from the cycle count plan) and applies small adjustments, changes stock types and blocks lots, accepts replenishment proposals, reserves stock by hand for a priority order | every warehouse, location, document and move; quantities and the value of a count's difference |
| The person on the floor (picker, packer, goods-in) | receives goods and returns, inspects returns, puts away, picks, packs and ships deliveries, moves stock between bins, issues stock to a cost centre or scraps it, records what a count found | products, locations, quantities and the documents of their warehouse; never a cost or a value |
| A second person for large differences (finance controller, the owner) | approves a count adjustment, a goods issue or a scrap whose value is over the threshold, and a transit shortfall written off; never one they counted, submitted or requested | every count, issue and scrap, its difference and its value |
| The owner | sets the controls on the warehouse (negative stock, the approval thresholds, lots and serials, the ledger mode, the valuation method per company, whether replenishment sends on its own, whether expired stock may be picked, the AI step's mode) | everything |
| Finance (bookkeeper, outside accountant) | reads stock value per product and company, the average or standard cost, and the journals posted for each movement; keeps the account map and the standard prices | quantities, values and postings; changes no stock |
| Sales | asks what is available before promising a date | available quantities per product and warehouse; never a cost, a value or a bin |
| The system | posts the stock move of each receipt line and return purchasing records, takes reservations from sales orders, expects returns from them, answers ATP, derives on hand and availability, appends average or standard cost, posts valuation to the ledger, claims document numbers, classifies ABC and proposes replenishment, suggests a cause for a count difference, imports the Odoo opening stock once | everything, through its own service account |
What it has to do
Reference user stories. Each has a test written into it — the given / when / then — which becomes an automated check once it is built. Expect to keep some, change some and drop some.
Things people do
INV-01As the warehouse manager, I want my sites, zones and bins as a tree, so that every item has an address and a count can cover one aisle.
Given no warehouse yet; company UK1 · when I add warehouse WH1 "Leeds" for company UK1, zone WH1/A and bins WH1/A/01 to WH1/A/40 · then WH1 exists with its stock root WH1 (kind view) and its locations; WH1/A/01 is kind internal, its parent WH1/A; adding a second WH1/A/01 is refused ("WH1/A/01 already exists"); a location's code is fixed once a move names it; the virtual locations SUPPLIER, CUSTOMER, LOSS, TRANSIT and OPENING exist once per company, are not stock (on hand there is never shown as available) and cannot be renamed, archived or counted
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Warehouses · reference: not built
Usually different per customer: how many levels (warehouse, zone, bin, or just warehouse); whether bins are used at all
INV-02As the warehouse manager, I want to archive a bin we no longer use, so that nobody puts stock there, without losing its history.
Given bin WH1/A/40 with 3 units of COLA-075, and bin WH1/A/39 empty · when I archive both · then WH1/A/39 is archived and no new move may name it; WH1/A/40 is refused ("WH1/A/40 holds 3 C62 of COLA-075: move it first"); every past move naming either still reads the same
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Warehouses · reference: not built
INV-03As the warehouse manager, I want to say which products we keep in stock and which are tracked by batch or serial number, so that we only count what we hold and can trace a recall.
Given products COLA-075 (kind goods), HOST-M (kind service) and DRILL-500 (goods); lots and serials turned on by the owner · when I set DRILL-500 to tracking serial and COLA-075 to tracking lot · then each is recorded from today; HOST-M is refused ("HOST-M is a service: services are not stocked"); changing the tracking of a product with stock on hand is refused, naming the quantity and where it is; with lots and serials off (the default) the tracking choice is not offered
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Stock · reference: not built: the product brick has kind goods | service and no tracking field, so tracking is inventory's own row per product
Usually different per customer: whether any product is tracked at all
INV-04As someone on the floor, I want to see how many of a product are where, and how many are already promised, so that I pick from the right bin and do not promise stock twice.
Given COLA-075, base unit LTR: WH1/A/01 holds 36 LTR, WH1/A/02 holds 9 LTR; a confirmed order reserves 18 LTR at WH1 · when I look COLA-075 up, or scan its pack GTIN · then on hand 45 LTR at WH1 (by bin: 36 and 9), reserved 18, available 27; each shown also in the product's sales unit (60 bottles on hand) by the product's exact conversion; a sales rep asking sees only available 27 per warehouse, no bins and no value; the answer is derived from the moves at the moment it is asked
The person on the floor (picker, packer, goods-in) · screen: Stock · reference: not built
INV-05As goods-in, I want to receive what a supplier delivered against what we expected, so that stock, the purchase order and the books agree.
Given purchase order PO-0101 line 1 still expects 10 PK24 of COLA-075 (PK24 = 24 bottles = 18 LTR) at 21.60 a pack, as purchasing's GET /purchase-orders/PO-0101/expected answers; tolerance 0% · when I scan 8 PK24 into WH1/A/01 against delivery note DN-881 and submit · then the scanner records the receipt through purchasing (POST /purchase-orders/PO-0101/receipts, INV-21); purchasing posts the line back (POST /receipts, move_ref pur:<receipt_id>:1, INV-20) and a done receipt numbered WH1/IN/00001 holds one move SUPPLIER -> WH1/A/01 of 144 LTR (8 PK24, numerator 18 / denominator 1, kept beside it), valued 172.80; purchasing shows 2 PK24 outstanding on line 1; scanning 11 PK24 is refused before purchasing is called ("11 is more than the 10 expected: the tolerance is 0%"); submitting DN-881 twice records one receipt; the receipt's posting date is today or earlier and falls in an open period, never in the future (a future date is refused 422 with the reason, as is a date in a closed period; the default is today)
The person on the floor (picker, packer, goods-in) · screen: Receipts · reference: not built
Usually different per customer: the over-receipt tolerance; whether a receipt is one step (into a bin) or two (goods-in, then put away)
INV-06As goods-in, I want to record the batch or serial numbers as I receive tracked products, so that a recall can name the customers who got them.
Given DRILL-500 tracked by serial; COLA-075 tracked by lot; an order still expecting 2 DRILL-500 and 1 PK24 of COLA-075 · when I scan serials SN-1 and SN-2 and lot L-2611 and submit · then two moves of 1 C62 each, one per serial, and one move of 18 LTR with lot L-2611; submitting without a serial on each unit is refused (before purchasing is called) ("2 DRILL-500 need 2 serial numbers, 1 given"); a serial already in stock is refused ("SN-1 is already on hand at WH1/A/03")
The person on the floor (picker, packer, goods-in) · screen: Receipts · reference: not built
INV-07As a picker, I want to pick and ship what a confirmed order needs, so that the customer gets it and the order knows it was delivered.
Given sales order SO-2026-0012 line 1: 48 C62 (bottles) of COLA-075 (0.75 LTR each) reserved at WH1; WH1/A/01 holds 36 LTR · when I create the delivery from the order, pick 24 bottles (18 LTR) from WH1/A/01 and validate · then a done delivery WH1/OUT/00001 with a move WH1/A/01 -> CUSTOMER of 18 LTR (24 C62) valued at the average cost; the reservation drops by 18 LTR; the sales order records a delivery of 24 on line 1 with delivery_ref inv:WH1/OUT/00001; the remaining 24 stay on a back-order delivery for the same order; picking from a bin that does not hold it is refused naming what the bin holds
The person on the floor (picker, packer, goods-in) · screen: Deliveries · reference: not built: sales-order's record_delivery route exists and refuses more than ordered, a future date and a date before confirmation
INV-08As a picker, I want the system to stop two of us shipping the last unit, so that we never deliver what we no longer have.
Given WH1/A/03 holds one DRILL-500; two deliveries for two orders name it, neither reserved (one order came in by phone); negative stock is not allowed · when two pickers validate at the same moment · then exactly one succeeds; the other is refused ("WH1/A/03 holds 0 DRILL-500 now: another delivery took it") and nothing of it is written, neither the move nor the call to the sales order; on hand never shows -1
The person on the floor (picker, packer, goods-in) · screen: Deliveries · reference: not built
INV-09As the warehouse manager, I want to move stock between bins or between sites, so that the system says where things really are.
Given WH1/A/01 holds 36 LTR of COLA-075; a second warehouse WH2 of the same company · when I move 18 LTR to WH1/B/07, and ship 9 LTR to WH2 · then the first is one done transfer WH1/INT/00001 (WH1/A/01 -> WH1/B/07), no value changes; the second is a transfer in two steps: shipped WH1/A/01 -> TRANSIT now, received TRANSIT -> WH2/A/01 when it arrives, the 9 LTR counted in transit until then and in neither warehouse's available; a transfer to a warehouse of another company is refused ("WH9 belongs to company DE1: an inter-company move is a sale and a purchase")
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Transfers · reference: not built
INV-10As whoever counts, I want to record what is actually on the shelves, so that the system matches reality.
Given a count started by the warehouse manager on WH1/A at 08:00; the moves say WH1/A/01 holds 36 LTR of COLA-075; at 09:00 a picker ships 9 LTR from WH1/A/01 · when at 10:00 I record 24 LTR counted at WH1/A/01, and submit the count · then the difference is computed against what the moves said at the moment the line was counted (27 LTR), not at the start: -3 LTR, valued at the average cost; nothing changes on hand until the count is applied; counting a product into a bin it was never moved to is allowed (a found item); a counted quantity above 10^12 or with more decimals than the unit allows is refused with the reason (422), never an error
The person on the floor (picker, packer, goods-in) · screen: Counts · reference: not built
INV-11As the warehouse manager, I want small count differences applied at once and large ones checked by a second person, so that shrinkage is visible and nobody writes off stock alone.
Given approval threshold 500.00 GBP (the sum of the absolute value differences across the lines) and a per-line limit 200.00 GBP; count C-14 with two lines worth -42.10 and +30.00; count C-15 worth -1,250.00; count C-16 with three lines worth -250.00, -20.00 and +20.00 · when I apply C-14, and submit C-15 and C-16 · then C-14 applies (sum 72.10, no line at 200.00); C-16 waits for approval although its sum 290.00 is under 500.00, because one line is at or above the per-line limit; one adjustment move per line, between the bin and LOSS, and the loss posted to the ledger; C-15 waits for approval; a stock controller who is neither the counter nor the submitter (compared by email AND by sign-in subject, so a second account of the same person is refused) approves it and it applies; the submitter approving is refused ("you submitted C-15: a second person approves")
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Counts · reference: not built
Usually different per customer: the threshold, and whether every count needs a second person
INV-12As the second person, I want to see what a count found and what it is worth before I approve it, so that I approve a loss knowingly.
Given count C-15 submitted with 6 lines, value -1,250.00, and the AI's suggested causes for two of them · when I open it · then each line shows expected (at its counted moment), counted, difference and value, and any suggestion marked as a suggestion; I approve, or reject with a reason (the count returns to the warehouse manager to recount); I cannot change a counted quantity
A second person for large differences (finance controller, the owner) · screen: Counts · reference: not built
INV-13As the warehouse manager, I want to hold stock for an important order, or release it, so that the right customer gets the last units.
Given 27 LTR of COLA-075 available at WH1; order SO-2026-0014 asks for 36 LTR and is reserved 27, short 9 · when I release 9 LTR from SO-2026-0012 and reserve them for SO-2026-0014 · then SO-2026-0014 is fully reserved; SO-2026-0012 is short 9 and shows it; both changes are appended with who and why; reserving more than available is refused, naming what is available
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Deliveries · reference: not built
INV-14As goods-in, I want to take back what a customer returns against its RMA and inspect it, so that the stock, the return order and the credit follow what actually came back.
Given delivery WH1/OUT/00001 of 24 bottles of COLA-075 on SO-2026-0012 line 1, valued 21.60; sales-order authorised RMA RE-2026-0001 for 6 bottles (POST /expected-returns, v3) · when the customer returns 6 bottles; I receive them, inspect them (4 good, 1 damaged by us, 1 damaged by the customer) and submit; another parcel arrives with no RMA · then a return receipt WH1/RET/00001 with a move CUSTOMER -> WH1/QC of 4.5 LTR in stock type quality, valued at the cost those bottles left at (5.40), not today's average; the returns order records 6 received (record_delivery on RE-2026-0001 with source inventory, delivery_ref inv:WH1/RET/00001); the inspection moves 3 LTR to WH1/A/01 unrestricted (no value change), scraps 0.75 LTR (INV-38) and sends 0.75 LTR back to the customer at the value it came in, and reports 5 accepted and 1 rejected to sales-order (POST /sales-orders/RE-2026-0001/return-inspections, once); the parcel with no open RMA is refused ("no open RMA of 7311 names COLA-075"); receiving more than the RMA expects, or a serial never delivered to that customer, is refused
The person on the floor (picker, packer, goods-in) · screen: Receipts · reference: not built: v3 receives against sales-order v5's returns order (RMA); the v2 negative correction on the original order stays only for a hand-recorded delivery mistake before invoicing
INV-15As the warehouse manager, I want to correct a move recorded by mistake without editing it, so that the history stays true.
Given transfer WH1/INT/00003 moved 18 LTR to WH1/B/07 instead of WH1/B/08 · when I reverse it with reason "wrong bin" and record the right transfer · then a reversing move WH1/B/07 -> WH1/A/01 of 18 LTR names the original; the original is unchanged and marked reversed; reversing it twice is refused; a delivery or receipt is never reversed this way: a delivery is undone by a return (INV-14), a receipt by a return to the supplier (known gap)
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Stock · reference: not built
INV-16As finance, I want stock value per product and company on any date, so that the balance sheet and the stock agree.
Given COLA-075 at company UK1: received 144 LTR at 1.2000 a litre, then 72 LTR at 1.3500, then 90 LTR delivered · when I ask the valuation for today and for the day before the second receipt · then today 126 LTR, average 1.2500, value 157.50 (216 LTR worth 270.00, less 90 LTR at 1.2500 = 112.50); the earlier day 144 LTR, 172.80; each figure lists the moves and journals behind it; the total equals the sum of the moves' values exactly, and the stock account's balance in the ledger is shown beside it with any difference named
Finance (bookkeeper, outside accountant) · screen: Valuation · reference: not built
INV-17As the owner, I want to decide whether stock may go negative, so that a shipment is never blocked by a late receipt if I accept that risk, and never goes out unseen if I do not.
Given negative stock not allowed (the default); WH1/A/02 holds 9 LTR · when a picker validates 12 LTR from it; then I allow negative stock for WH2 only and a picker does the same there · then at WH1 refused ("WH1/A/02 holds 9 LTR, 12 asked"); at WH2 allowed and the bin shows -3 LTR, flagged on the Stock screen until a receipt or a count clears it; the change is recorded from today with who set it; only inv:settings:controls changes it
The owner · screen: Settings · reference: not built
INV-34As whoever counts and picks, I want to work in the packs we actually handle, so that I count five cases and six loose bottles instead of working out litres.
Given COLA-075, base LTR, warehouse unit PK24 (= 18 LTR), sales unit C62 (= 0.75 LTR); WH1/A/01 holds 94.5 LTR; an order line of 48 C62 is reserved · when I look the bin up, count it as 5 PK24 plus 6 C62, and open the pick list for the order · then the bin shows 5 PK24 and 6 C62 (94.5 LTR): the warehouse unit first, the rest in the sales unit, and in the base unit where neither divides it exactly; the count line holds two entries (5 PK24, 6 C62), each with its unit's conversion, and counted 94.5 LTR; the pick list proposes 2 PK24 for the 48 C62; an entry in a unit the product does not have, or with more decimals than the unit allows, is refused with the reason; with no warehouse unit set the base unit is used and said so
The person on the floor (picker, packer, goods-in) · screen: Counts · reference: SAP WM unit of measure (MLGN-LVSME) and counting in alternative units (MI04 entry in any unit of entry); Odoo counts in the product's unit only
Usually different per customer: which unit each product is handled in (case, layer, pallet)
INV-35As whoever ships and receives, I want each delivery and receipt to show its weight and volume, so that I can book the carrier and check a delivery against the supplier's note.
Given PK24 of COLA-075 at gross 19.2 / net 18.0 KGM and 0.027 MTQ; the bottle at gross 0.79 / net 0.75 KGM with no volume (product PRD-28) · when a delivery of 3 PK24 and 6 C62 is created, and a receipt of 8 PK24 is posted · then each line copies its unit's measures when it is written; GET /documents/{document_id}/shipping answers the delivery's gross 62.34 KGM, net 58.5 KGM and volume 0.081 MTQ with "volume unknown for 1 of 2 lines", and the receipt's gross 153.6 KGM; measures in other units are converted through unit_conversion (GRM, LBR) exactly; a measure changed on the product later (a new unit, PRD-34) never changes a document already written; with delivery_needs_weights on, validating a delivery with a line of unknown weight is refused naming the line
The person on the floor (picker, packer, goods-in) · screen: Deliveries · reference: SAP delivery header gross / net weight and volume (LIKP-BTGEW, NTGEW, VOLUM) from MARM per item; Odoo delivery weight from product weight
Usually different per customer: whether weights must be known before a delivery leaves (pallet freight, parcel carriers)
INV-36As the warehouse manager, I want goods in quality inspection or set aside as damaged to be counted and valued but never sold, so that nobody ships stock we have not released.
Given location WH1/QC with stock status quality and WH1/DAMAGED with status blocked; 8 PK24 of COLA-075 are received into WH1/QC · when an order asks availability, a picker tries WH1/QC, and I release 6 PK24 to WH1/A/01 and move 2 PK24 to WH1/DAMAGED · then on hand at WH1 counts the 144 LTR, available counts none of it until released; WH1/QC cannot be reserved or picked from ("WH1/QC is in quality inspection: release it first"); the release is a transfer WH1/QC -> WH1/A/01 of 108 LTR with no value change, and the 36 LTR at WH1/DAMAGED stay on hand, valued and unavailable until a count writes them off to LOSS or a return sends them to the supplier; changing a location's status while it holds stock is refused (move the stock first)
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Warehouses · reference: SAP stock types unrestricted / quality inspection / blocked and transfer postings between them (movement types 321, 343, 344, 349); Odoo multi-step receipts through a quality location
Usually different per customer: whether goods are inspected on arrival; whether damaged goods are kept apart
INV-37As someone in the workshop or the office, I want to take stock out for our own use and charge it to a cost centre, so that consumables leave the shelf and their cost lands where it was spent.
Given GLOVES (type RAW, stocked) base unit C62, issue unit BX100 (a box of 100, product PRD-29); WH1/A/05 holds 20 BX100; average cost 0.0800 a glove; cost centre MAINT; issue approval threshold 500.00 · when I issue 3 BX100 from WH1/A/05 to cost centre MAINT, then try 2 BX100 to cost centre NOPE, then the warehouse manager reverses the first with reason "wrong cost centre" · then a goods issue WH1/GI/00001 with one move WH1/A/05 -> UK1:CONSUMPTION of 300 C62 (3 BX100, the issue unit proposed and its conversion kept), valued 24.00 at the average, and a journal consumption 24.00 debit with cost centre MAINT on the line / stock_valuation 24.00 credit; NOPE is refused (gate cost_centre_valid, the ledger's answer); the reversal is a move UK1:CONSUMPTION -> WH1/A/05 of 300 C62 naming the original, valued at the original's 24.00, and a reversing journal; reversing twice is refused; an issue whose value is at or above 500.00 waits for a stock controller who is not the requester (email AND sign-in subject)
The person on the floor (picker, packer, goods-in) · screen: Issues · reference: SAP goods issue to cost centre (MIGO / MB1A movement type 201, reversal 202), unit of issue MARC-AUSME; Odoo has no consumption document (an inventory adjustment to a virtual location)
Usually different per customer: whether stock is used internally at all (workshops, maintenance, offices)
INV-38As someone on the floor, I want to scrap damaged or expired stock with a reason, so that it leaves the books as a loss we can see, not as a count difference.
Given WH1/DAMAGED (stock type blocked) holds 36 LTR of COLA-075 lot L-2611; scrap reasons DAMAGED, EXPIRED, QUALITY · when I scrap 36 LTR of L-2611 with reason DAMAGED, and then try to scrap 9 LTR more from it · then a goods issue WH1/GI/00002 purpose scrap with a move WH1/DAMAGED -> UK1:LOSS of 36 LTR valued at the average, and a journal inventory_scrap debit / stock_valuation credit naming the reason; the second is refused ("WH1/DAMAGED holds 0 LTR of L-2611"); a scrap at or above the threshold waits for a second person; scrapping is never a count adjustment, so the loss report separates shrinkage (counts) from scrap (reasons)
The person on the floor (picker, packer, goods-in) · screen: Issues · reference: SAP scrapping (movement type 551 from unrestricted, 553 from quality, 555 from blocked; reversal 552) with reason for movement; Odoo stock.scrap
INV-39As a picker, I want the pick list to tell me which batch to take, first-expiring first, so that nothing expires on the shelf and no customer gets stock too close to its date.
Given COLA-075 removal strategy FEFO at WH1; lots L-2611 (expires 2026-12-01, 18 LTR in WH1/A/01), L-2612 (expires 2027-02-01, 36 LTR in WH1/A/02), L-2601 (expired 2026-10-15, 9 LTR in WH1/A/03); 7311 requires 60 days of remaining shelf life; today 2026-11-02 · when a delivery of 24 C62 (18 LTR) for 7311 is picked, and a picker scans L-2611 instead of the proposed lot · then the pick list proposes L-2612 from WH1/A/02 (L-2611 has only 29 days left, under 7311's 60; L-2601 is expired and is never proposed or available); scanning L-2611 is refused (gate shelf_life, "L-2611 expires 2026-12-01: 7311 needs 60 days"); a warehouse manager may allow it with a reason, recorded; for a product with FIFO the oldest received lot is proposed; an expired lot is excluded from availability and ATP from its expiry date and is listed for scrapping
The person on the floor (picker, packer, goods-in) · screen: Deliveries · reference: SAP batch determination with sort by shelf-life expiration date (FEFO) and minimum remaining shelf life (MARA-MHDRZ, customer-specific in batch search strategies); EWM removal strategies FIFO / FEFO; Odoo removal strategies FIFO / FEFO
Usually different per customer: whether stock expires; the minimum shelf life each customer accepts
INV-40As whoever handles serial-numbered goods, I want every serial followed from receipt to the customer and back, so that warranty, theft and recall questions have an answer.
Given DRILL-500 tracked by serial; SN-1 received into WH1/A/03, SN-2 into WH1/A/04 · when SN-1 is delivered to 7311 on WH1/OUT/00007; 7311 returns SN-2 against RE-2026-0002; a count finds SN-1 on a shelf; a transfer is scanned without a serial · then GET /serials/DRILL-500/SN-1 answers its history: received (supplier, receipt, date), moved, delivered to 7311 on WH1/OUT/00007; the return of SN-2 is refused ("SN-2 was never delivered to 7311"); the count line for SN-1 is refused as a found item ("SN-1 left on WH1/OUT/00007: record a return first"); the transfer without a serial is refused; a serial is on hand in at most one place with quantity 1, and a delivered serial is on hand nowhere
The person on the floor (picker, packer, goods-in) · screen: Stock · reference: SAP serial number management (serial number profile, IQ09 serial history, equipment); Odoo stock.lot of serial tracking with traceability
INV-41As the warehouse manager, I want to find every customer who received a batch, so that a recall reaches the right people the same day.
Given lot L-2611 of COLA-075 received on R-7 from supplier 9100: 144 LTR; delivered 54 LTR to 7311 and 36 LTR to 8420; 36 LTR scrapped; 18 LTR in WH1/A/01 · when I ask where L-2611 is and where it went, and block it · then GET /lots/COLA-075/L-2611/trace answers: from supplier 9100 on R-7; to 7311 (54 LTR, WH1/OUT/00003 and /00009) and 8420 (36 LTR, WH1/OUT/00005); scrapped 36; on hand 18 at WH1/A/01; nothing unaccounted; blocking it changes its stock type to blocked wherever it is (a transfer posting, no movement), so it is never reserved, picked or promised until released
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Stock · reference: SAP batch where-used list (MB56) and batch status restricted / unrestricted; Odoo lot traceability report
INV-43As the warehouse manager, I want the system to tell me what to count this week, more often for what matters, so that a cycle count replaces the annual shutdown.
Given ABC classes at WH1 (INV-42): COLA-075 A, SCREW-M4 B, GLOVES C; frequencies A 12 per year, B 4, C 1; COLA-075 last counted 2026-09-25, SCREW-M4 2026-08-01, GLOVES 2026-01-10 · when I open the cycle count plan on 2026-11-02 and start counts from it · then the plan lists COLA-075 (due 2026-10-25, overdue) and SCREW-M4 (due 2026-11-01), not GLOVES (due 2027-01-10); starting from the plan makes one count per product over every bin that holds it (scope product, not a subtree); each line counts as in INV-10 at its counted moment, so nothing need stop moving; applying a count sets the product's last counted date; a count of a full subtree (the annual count) is still possible
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Counts · reference: SAP cycle counting (MIBC: cycle counting indicator A / B / C with intervals per plant, MICN batch input), physical inventory without posting block; Odoo inventory frequency per location (annual inventory day, cyclic counting per location)
Usually different per customer: the classes' thresholds and frequencies; whether an annual count is still wanted
INV-44As whoever replenishes, I want the system to propose what to buy or move when stock runs low, rounded to how we really order, so that we reorder on time without counting shelves.
Given product site WH1 for COLA-075 (PRD-37): min_max, reorder point 360 LTR, max 1 440 LTR, safety stock 90, buy, purchase unit PK24 (18 LTR), rounding profile PALLET-LAYER; WH2 transfer from WH1, reorder point 72, lot size fixed 144 LTR; replenishment_mode suggest · when the nightly run on 2026-11-02 finds WH1 projected 300 LTR (on hand unrestricted 360 + 0 expected - 60 reserved) and WH2 projected 54 LTR; I accept the WH1 proposal and dismiss nothing; the run is repeated · then WH1: a proposal to buy up to the max, 1 140 LTR (1 440 - 300) = 63.33 PK24, 64 whole packs, rounded by GET /products/COLA-075/round-proposal to 60 PK24 (64 is 80% of a pallet, under 90%; the 4 packs over 6 layers are 40% of a layer, under 50%), so 1 080 LTR and a projected 1 380 LTR, recorded with the site row's valid_from and every figure it used; WH2: a proposal to transfer 144 LTR from WH1; accepting the first sends one purchase request to purchasing (INV-54); the WH2 proposal becomes a draft transfer; the repeat writes nothing more; in auto mode the owner's control sends them without a person (a rule, not an AI step); a proposal never sees stock in quality or blocked status or on consignment at a customer
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Replenishment · reference: SAP consumption-based planning (MRP type VB reorder point, V1 with forecast, HB replenish to maximum; MD01 / MD03; planned order or purchase requisition; stock transport requisition for special procurement 40); Odoo reordering rules min / max and the replenishment report
Usually different per customer: which products are planned; whether proposals are sent automatically
INV-46As goods-in, I want stock the supplier still owns kept apart in the books but usable on the shelf, so that we pay for it only when we take it.
Given supplier 9100 keeps consignment stock of SCREW-M4 with us; purchasing's consignment order PO-0150 expects 5 000 C62; consignment price 2.4500 per 100 · when 5 000 C62 are received into WH1/B/01 (purchasing posts them with special_stock supplier_consignment); a delivery picks 1 200 C62 of them; then 300 C62 are moved into our own stock · then the receipt is a move SUPPLIER -> WH1/B/01 with owner 9100, valued 0.00 (not ours) and no journal; on hand shows 5 000 C62 of which 5 000 consignment of 9100; available counts them (we may use them); the delivery's validation withdraws 1 200 C62 from 9100's ownership first (a move from owner 9100 to owner us at WH1/B/01, valued 29.40 at purchasing's consignment price, journal stock_valuation debit / consignment_liability credit, and purchasing told once through POST /consignment-withdrawals so it settles with the supplier), then delivers them as our stock at the new average; the 300 C62 transfer to own stock is the same withdrawal with no delivery; returning unused consignment stock to 9100 moves it back to SUPPLIER with no value
The person on the floor (picker, packer, goods-in) · screen: Receipts · reference: SAP supplier consignment (special stock K, movement types 101 K, 411 K withdrawal, consignment settlement MRKO); Odoo owner on quants (consignment)
Usually different per customer: whether any supplier keeps stock with you
INV-48As finance, I want to value a company's stock at standard cost if the owner chooses, with the difference to what we paid shown as a variance, so that margins are stable and purchasing variances are visible.
Given company UK1 valuation_method standard from 2026-12-01 (the owner's control, from the first day of a later month); COLA-075 standard price 1.2000 a litre from 2026-12-01; on 2026-11-30 UK1 holds 126 LTR at average 1.2500 (157.50) · when the method takes effect on 2026-12-01; on 2026-12-03 144 LTR are received at 1.3500 a litre (194.40 from purchasing); on 2026-12-04 90 LTR are delivered · then at 2026-12-01 a revaluation row brings 126 LTR to 151.20 (-6.30, journal stock_valuation credit / revaluation debit); the receipt is valued 172.80 at standard with a price difference of 21.60 (journal stock_valuation 172.80 debit, price_difference 21.60 debit, stock_received_not_billed 194.40 credit); the delivery is valued 108.00 (90 x 1.2000); value_after is always round_half_up(quantity_after x standard, 2) and each move's value is the change in value_after, so the moves sum exactly and zero quantity is zero value; a standard dated today or earlier, or a method switch not on the first of a later month, is refused; another company may stay on average cost
Finance (bookkeeper, outside accountant) · screen: Valuation · reference: SAP price control S (standard price) vs V (moving average) per material and valuation area (MBEW-VPRSV), price differences on goods receipt (PRD), standard price change revaluation (MR21 / CK24, UMB); IAS 2 para 21 (standard cost as a measurement technique when it approximates cost); Odoo costing methods standard / average / FIFO per category
Usually different per customer: average or standard per company
INV-56As finance, I want to change a standard price from a date and see the stock revalued, so that next year's standard applies to what is already on the shelf.
Given UK1 on standard; COLA-075 standard 1.2000; on hand 180 LTR on 2026-12-31 · when on 2026-12-20 I set 1.2500 from 2027-01-01; on 2027-01-01 the change takes effect; then I try to set a price from 2026-12-20 · then a revaluation row on 2027-01-01 of +9.00 (180 x 0.0500) and a journal stock_valuation debit / revaluation credit, journal_id derived (company, product, valid_from), posted once; moves from 2027-01-01 are valued at 1.2500; the back-dated price is refused (starts after today); the price per company is a dated row the accountant writes with inv:valuation:write, never product's cost_amount
Finance (bookkeeper, outside accountant) · screen: Valuation · reference: SAP standard price release (CK24 marking and release, future standard price MBEW-ZKPRS / ZKDAT)
INV-50As the warehouse manager, I want goods-in told which bin to put each item away in, so that stock goes where pickers will look and bins are not overfilled.
Given receipt steps two (goods-in to WH1/IN, then put away); putaway rules at WH1: 1 COLA-075 fixed bin WH1/A/01 (max 108 LTR), 2 category drinks to the next bin of zone WH1/A with room, 3 everything else addition to existing stock, else zone WH1/C; WH1/A/01 holds 90 LTR · when 8 PK24 (144 LTR) of COLA-075 are received into WH1/IN and put away, and 10 C62 of SCREW-M4 · then the putaway proposes 18 LTR to WH1/A/01 (its room to 108 LTR) and 126 LTR to WH1/A/02 (the next bin of WH1/A with room by volume, from the units' copied measures); SCREW-M4 goes to the bin that already holds it; each putaway is a transfer WH1/IN -> bin with no value change; the operator may choose another bin, which is recorded with who; a bin over its capacity (quantity, weight or volume) is refused naming the capacity; stock in WH1/IN is on hand but not available until put away
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Receipts · reference: SAP WM / stock room management putaway strategies (fixed bin F, open storage C, addition to existing stock I, next empty bin L; bin capacity check); Odoo putaway rules
Usually different per customer: whether bins are assigned per product (fixed) or chosen freely; one-step or two-step receipts
INV-51As a picker, I want the morning's deliveries picked together in walking order, so that I walk each aisle once instead of once per order.
Given deliveries WH1/OUT/00011, /00012 and /00013 ready; locations carry a pick_sequence; delivery steps pick_pack_ship · when the warehouse manager batches the three into pick batch WH1/PB/00001 and I pick it · then one pick list over all three, sorted by pick_sequence, each line naming the lot by the removal strategy (INV-39) and the delivery it is for; picked goods move bin -> WH1/OUT-STAGE (a transfer, no value change) and are sorted to their deliveries; a delivery leaves the batch only whole; validation of each delivery still claims stock per delivery (INV-08); a delivery in a batch cannot be cancelled until it is taken out
The person on the floor (picker, packer, goods-in) · screen: Deliveries · reference: SAP WM / EWM wave picking and two-step picking (pick to staging, then allocate), picking sequence by bin; Odoo batch and wave transfers
Usually different per customer: whether volume justifies batching; one-step or two-step picking
INV-52As a packer, I want to pack a delivery into boxes and pallets, each with its own label number and weight, so that the carrier and the customer can check every package.
Given WH1/OUT/00011 of 6 PK24 COLA-075 and 2 DRILL-500; package types BOX-L (tare 0.6 KGM, 60 x 40 x 40 CMT) and PALLET-EU (tare 25 KGM); our GS1 company prefix 5012345 · when I pack 4 PK24 on one pallet, 2 PK24 and 2 DRILL-500 in a box, and validate · then two packages, each with an SSCC from the series (18 digits, check digit computed, never reused) and its contents, gross weight = tare + the contents' copied weights (PALLET 101.8 KGM, BOX the sum likewise); GET /documents/WH1/OUT/00011/shipping lists the packages; validating with an item not in any package is refused under pick_pack_ship; a package's contents never exceed what was picked
The person on the floor (picker, packer, goods-in) · screen: Deliveries · reference: SAP handling units (HU, packing in the delivery, SSCC per HU, packaging materials with tare); Odoo packages (stock.quant.package) and package types
Usually different per customer: whether you pack into numbered packages; pallets or parcels
INV-53As the warehouse manager, I want a transfer between our sites to say when it will arrive, so that the receiving site can promise that stock and nobody loses track of a lorry.
Given WH2 is supplied from WH1, 2 days in transit (product site PRD-37); a draft transfer of 144 LTR COLA-075 from WH1 to WH2 · when it ships on 2026-11-02; an order at WH2 asks ATP; it arrives on 2026-11-05 with 126 LTR · then shipping records expected_arrival_on 2026-11-04 (ship date + the site's planned days); ATP at WH2 counts the 144 LTR from 2026-11-04 (INV-49); the transit stock is valued and in neither warehouse's available; on arrival 126 LTR are received and the 18 LTR short stay in UK1:TRANSIT on the transfer with gate transit_cleared unmet until a count of TRANSIT or a loss approved by a second person; a transfer overdue past its expected arrival is listed on the Transfers screen
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Transfers · reference: SAP stock transport order with stock in transit (two-step 303 / 305, or 351 / 101 with planned delivery time), in-transit stock in MMBE; Odoo two-step inter-warehouse resupply
INV-55As the warehouse manager, I want to put stock into quality inspection or blocked status where it stands, so that a doubtful pallet is held without anyone moving it across the warehouse.
Given WH1/A/02 (default status unrestricted, allowing all three) holds 36 LTR of COLA-075 lot L-2612; WH1/QC allows only quality · when I set 18 LTR of L-2612 at WH1/A/02 to quality, then release 12 LTR and block 6, then try to put unrestricted stock into WH1/QC by a transfer · then each change is a move from (WH1/A/02, unrestricted) to (WH1/A/02, quality) and back, same bin, no value change, naming who and why; available at WH1 drops by 18 LTR and rises by 12; the blocked 6 LTR stay on hand and valued; the transfer into WH1/QC arrives as quality (the location's only allowed status); a reservation or a pick never takes quality or blocked stock; stock type is part of every stock row (product, location, lot, stock type, owner), and a location's status is its default and its limit (v3)
Whoever runs the warehouse (operations lead, the owner in a small firm) · screen: Stock · reference: SAP stock types per quant (unrestricted, quality inspection, blocked) and transfer postings 321 / 322, 343 / 344, 349 / 350 without a change of storage location
Things that happen on their own
INV-30on read (derived)The system derives on hand, reserved and available from the moves and the reservations whenever they are asked, so that no stored quantity can drift from the history.
Given moves into WH1/A/01 of 144 LTR and out of 108 LTR; reservations of 18 LTR at WH1 · when on hand is asked for WH1/A/01, for the subtree WH1, and as of yesterday 17:00 · then 36 LTR; the subtree is the sum over every internal location whose code starts with WH1/; as of a past moment only moves recorded by then count; asking twice gives the same answer
· reference: not built
INV-31in the same request as each move that changes a company's quantity of a productThe system keeps the average cost per product per company by appending a valuation row per move, so that every delivery is costed at what the stock cost.
Given COLA-075 at UK1: 144 LTR worth 172.80 (average 1.2000) · when 72 LTR are received at 1.3500, then 90 LTR delivered, then the last 126 LTR delivered · then rows: +72 worth 97.20 (216 LTR, 270.00, average 1.2500); -90 worth -112.50 (126 LTR, 157.50); -126 worth -157.50 (0 LTR, 0.00): the move that empties the product takes the remaining value, never quantity x average, so no residue is left; each row is keyed (company, product, seq) and claimed with a plain INSERT, so two concurrent moves cannot both take the same seq; a transfer between warehouses of one company appends nothing
· reference: not built
INV-32when a receipt, delivery, return or applied count is done, and again on retry while a posting is pendingThe system asks the ledger to post the value of each stock movement, so that the stock account always equals the stock.
Given ledger mode post; the account map has stock_valuation, stock_received_not_billed, cost_of_goods_sold and inventory_loss for UK1 · when delivery WH1/OUT/00001 worth 21.60 is done · then one journal (cost_of_goods_sold debit 21.60 / stock_valuation credit 21.60) with journal_id derived from (document, event), so posting again changes the ledger once; a refusal (a closed period, a missing account) leaves the posting pending with the ledger's reason, the stock move stands, and the Valuation screen lists it to fix; in export mode nothing is posted and the month's movements are a file for the accountant
· reference: not built
INV-33when a count is submitted and the step is onThe system suggests a likely cause for each large count difference, so that the approver checks the obvious first.
Given count C-15 shows WH1/A/01 short 18 LTR of COLA-075, and a transfer of 18 LTR to WH1/B/07 the same morning · when the count is submitted with ai_explain_variance on (suggest) · then the line carries a suggestion ("possibly the 18 LTR moved to WH1/B/07 at 09:12 was put in WH1/A/01: recount WH1/B/07") marked as a suggestion; nothing is adjusted or approved by it; the approver's decision on it is logged with who
· reference: not built
INV-42on the first business day of each month (the composition's clock), for every warehouseThe system classifies each product A, B or C per warehouse by the value that moved out in the last twelve months, so that counting effort follows value.
Given WH1, last twelve months' issues and deliveries valued: COLA-075 40,000.00, SCREW-M4 8,000.00, GLOVES 900.00, nine others 1,100.00 together; thresholds A to 80%, B to 95% · when the classification runs on 2026-11-02, and again the same day, and the warehouse manager overrides GLOVES to B with a reason · then each product is classed by the cumulative share of the products above it: COLA-075 starts at 0% (A), SCREW-M4 at 80% (B), GLOVES at 96% and the rest after it (C); dated rows (warehouse, product, valid_from) from today; the re-run writes nothing; the override is a dated row with who and why, kept until the next run that would change the class names it as overridden; nothing about it changes stock or value
· reference: SAP ABC analysis for cycle counting (MIBC by consumption or requirement value, thresholds per plant)
Things that cross into other modules
INV-20when purchasing records a receipt line, from its own screen or from this module's scanner (INV-21)Purchasing posts each received line here, so that stock moves are owned by one module and a delivery is keyed once.
Given purchasing's receipt R-1 of 8 PK24 of COLA-075 on PO-0101 line 1 into WH1/A/01, received 2026-10-21, at 21.6000 a pack · when purchasing calls POST /receipts twice with move_ref pur:R-1:1 · then one move SUPPLIER -> WH1/A/01 of 144 LTR, converted exactly through product, dated the received_on date, valued 172.80, answered {move_id, quantity_base: "144"}; the second call returns the same move and records nothing; a unit that does not convert exactly is refused with product's reason and nothing is moved
· owned by inventory · reference: not built
INV-21when goods-in submits a scanned delivery on this module's Receipts screenThe scanner records the receipt through purchasing, so that there is one way a receipt is recorded and purchasing owns the order and its matching.
Given 8 PK24 scanned against PO-0101 line 1 into WH1/A/01, delivery note DN-881 · when the scan is submitted · then purchasing's POST /purchase-orders/PO-0101/receipts is called once with delivery note DN-881; purchasing answers the receipt with a move_ref per line, each line already posted here (INV-20); the lots and serials scanned are attached to the moves those move_refs name; submitting DN-881 again records once; the scanner never posts a supplier move itself
· owned by purchasing · reference: not built
INV-22when a sales order is confirmed, amended or cancelledThe sales order asks this module to reserve (or release) stock for its goods lines, so that what is promised is held.
Given SO-2026-0012 confirmed, revision 1, line 1 48 C62 of COLA-075 at 0.75 LTR each; 45 LTR available at WH1 · when sales-order calls POST /reservations/sales-orders/SO-2026-0012 with revision 1, twice · then 36 LTR reserved for line 1 at WH1, short 0; the second call changes nothing; revision 2 with 24 C62 reduces the reservation to 18 LTR; a release (cancellation) frees it all; a service line is ignored and said so; the answer is each line's readiness {gate, met, reason, fix}
· owned by inventory · reference: not built: sales-order 0.x does not call this yet (it has no outbound seam for stock); until it does, the warehouse manager reserves from the Deliveries screen (INV-13), which reads the order through GET /sales-orders/{sales_order_id}
INV-23when a delivery or a customer return is doneThis module records on the sales order what was delivered, through the order's own route, so that the order's fulfilment and its invoicing follow the warehouse.
Given delivery WH1/OUT/00001 of 24 C62 on SO-2026-0012 line 1 · when it is validated, and the call is repeated · then sales-order's record_delivery is called with quantity 24 in the line's own unit, delivery_ref inv:WH1/OUT/00001 and delivered_on today; the order records it once; a refusal by the order (more than ordered, an order no longer confirmed) refuses the whole validation and nothing is written here; v3: before raising and validating it reads GET /sales-orders/{sales_order_id}/fulfilment (blocks, complete delivery, tolerances, the order type's special stock and purpose); a customer return is recorded on its returns order (INV-14), never as a negative on the original
· owned by sales-order · reference: the route exists (erp-brick-sales-order POST /sales-orders/{sales_order_id}/deliveries)
INV-24from INV-32Stock journals are posted by the ledger, never written here.
Given the ledger installed and post mode on · when a posting is due · then a balanced journal reaches the ledger's journal route; the ledger owns the journal, the period and the balance
· owned by gl · reference: the route ar already calls (POST /journal-entry/journals); the gl spec (written in parallel) confirms it
INV-25when a document line names a product and a unitQuantities are converted by the product module, and a unit used here is frozen there, so that a pack size cannot change under stock.
Given COLA-075 with PK24 = 24 bottles = 18 LTR · when a receipt line of 8 PK24 is written · then the product's convert route answers exactly (144 LTR, 18/1); the move stores the quantity in LTR, the document's unit, numerator and denominator; product's unit-used route is called once for PK24; a conversion the product cannot make exactly within the base unit's decimals is refused with the product's reason
· owned by product · reference: the routes exist (erp-brick-product GET /products/{product_id}/convert, POST /products/{product_id}/units/{unit_code}/used, GET /gtin/{gtin})
INV-26on a one-off migration at cut-overThe Odoo stock comes over once as opening balances, reconciled per product and location and in value, and can be re-run safely.
Given an Odoo database with two warehouses, 300 stocked products, lots on 20 of them and an average cost per product · when the migration runs twice and the reconciliation is computed · then one opening move per (product, location, lot) from OPENING, dated the cut-over date, valued at Odoo's cost; the second run writes nothing; every check in migration.odoo.reconcile is equal or explained; once the customer signs the reconciliation, a later run refuses to rewrite it and lists a difference as an adjustment to make
· owned by inventory · reference: not built
INV-27when another module asks a product's cost or availabilitySales and invoicing read availability and the average cost here, so that a promise date and a margin use the stock's own figures.
Given COLA-075 with 27 LTR available at WH1 and an average cost of 1.2500 at UK1 · when sales-order asks availability, and the order admin asks the cost for margin · then availability answers per warehouse without bins or value; the cost answers only to a caller holding inv:valuation:read; product's standard cost_amount is left untouched by this module
· owned by inventory · reference: not built
INV-28when purchasing records a return to the supplierPurchasing posts a return to the supplier here, so that the goods leave stock at the cost they came in at.
Given receipt R-1 posted 144 LTR into WH1/A/01 (move_ref pur:R-1:1); 2 PK24 are damaged · when purchasing calls POST /returns-to-supplier with move_ref pur:RET-1:1 reversing pur:R-1:1, twice · then one move WH1/A/01 -> SUPPLIER of 36 LTR valued at the receipt's cost (43.20), answered {move_id, quantity_base: "36"}; the second call records nothing; a return when the stock is no longer at WH1/A/01 is refused (409, "WH1/A/01 holds 20 LTR, 36 asked") and nothing moves
· owned by inventory · reference: not built
INV-45when a consignment order (sales-order SO-45) is delivered, issued, picked up or returnedStock kept at a customer stays ours and valued, apart from what we can sell, until the customer uses it.
Given 7311 consignment location UK1:CONSIGNMENT:7311 (kind consignment_customer, created on first use); a CONS_FILL order of 240 C62 COLA-075 · when inventory delivers the CONS_FILL, then the CONS_ISSUE of 60, the CONS_PICKUP of 24 and the CONS_RETURN of 6, and sales-order asks GET /consignment-stock/customers/7311 · then the fill is a move WH1/A/01 -> UK1:CONSIGNMENT:7311 of 180 LTR, no value change, no cost of sales, not recorded as a delivery on the order's invoicing (the order type says so in its fulfilment answer); the issue moves 45 LTR to UK1:CUSTOMER at the average (cost of sales) and calls record_delivery on the CONS_ISSUE order; the pick-up moves 18 LTR back to WH1; the return receives 4.5 LTR from UK1:CUSTOMER into quality; the stock answer is 162 C62 (121.5 LTR); consignment stock is on hand and valued, never available, reserved or promised to anyone else
· owned by inventory · reference: not built
INV-47when purchasing's subcontract order is sent (components provided) and when the subcontracted product is receivedComponents we give a subcontractor stay ours at their site, and are consumed into the finished product when it comes back, so that its value is the components plus the service.
Given purchasing's subcontract order PO-0160 with subcontractor 9200 for 100 C62 of KIT-A at 3.0000 service each, components 100 C62 BOX-S and 200 C62 SCREW-M4 (listed on the order, no bill of materials needed) · when the warehouse manager ships the components (a transfer to UK1:SUBCONTRACT:9200), then purchasing posts the receipt of 100 KIT-A through POST /receipts with source_kind subcontract_receipt and the components consumed, twice · then the components sit at UK1:SUBCONTRACT:9200 on hand and valued, never available; the receipt is one move SUPPLIER -> WH1/A/09 of 100 KIT-A and two consumption moves out of UK1:SUBCONTRACT:9200 (100 BOX-S, 200 SCREW-M4) at their average; KIT-A's receipt value = the components' value + 300.00 service, so stock value is moved, not created; a component short at the subcontractor is refused (409, naming it) and nothing is moved; the repeat records nothing
· owned by inventory · reference: SAP subcontracting (item category L, special stock O, movement types 541 provision and 543 consumption with 101 receipt)
INV-49when sales-order promises dates (SO-35) or re-promises them (SO-36)Inventory answers what can be promised by date, from stock, receipts and transfers on their way, so that a promise uses the same figures as the warehouse.
Given COLA-075 at WH1: unrestricted 360 LTR (of which lot L-2601 9 LTR expired), reserved 180 LTR with dates; purchasing expects 720 LTR on 2026-11-09; goods-in 1 day; a transfer of 36 LTR arriving 2026-11-04 · when sales-order asks GET /atp/COLA-075?warehouse_id=WH1&quantity=480&unit_code=C62&requested_on=2026-11-03&min_shelf_life_days=60 · then available_now 171 LTR (360 - 9 expired - 180 reserved), plus 36 LTR from 2026-11-04 and 720 LTR from 2026-11-10; the 360 LTR asked are confirmed 171 now, 36 on 2026-11-04 and 153 on 2026-11-10; stock expiring within the minimum shelf life of its date is not counted; quality, blocked and customer-consignment stock never; expected receipts read from purchasing's GET /expected-receipts, never from pur_ tables; nothing is reserved by asking
· owned by inventory · reference: not built
INV-54when a replenishment proposal to buy is accepted (or sent in auto mode)An accepted proposal becomes one purchase request in purchasing, so that purchasing owns the buying and the proposal knows what became of it.
Given the WH1 proposal for 60 PK24 of COLA-075 accepted on 2026-11-02 · when inventory calls POST /purchase-requests/from-replenishment twice with request_ref inv:repl:WH1:COLA-075:2026-11-02 · then purchasing answers one request_id; the proposal is marked sent with it; the second call returns the same; the next night's projection counts the request as expected until purchasing reports it ordered (then the order's expected receipt) or cancelled (then the proposal is open again)
· owned by purchasing · reference: not built
INV-57when purchasing approves a bill whose actual delivery cost differs from what the receipt was valued atPurchasing hands the delivery-cost difference here, so that stock still on hand carries its real landed cost and the rest goes to price difference.
Given receipt R-77 of 100 PK24 of COLA-075 valued at 1,800.00 including 50.00 planned freight; 60 PK24 of it still on hand; the forwarder bills 80.00 · when purchasing calls POST /valuation-adjustments with adjustment_ref pur:B-912:1 and amount 30.00 · then 18.00 (60 of 100) is added to the value on hand of that receipt's stock and 12.00 posts to price difference, one journal through gl; a repeat with the same adjustment_ref changes nothing; under standard cost the whole 30.00 is price difference
· owned by inventory
INV-58when a till sale closes (pos POS-27) and when a production order issues components (manufacturing MFG-20)Another module asks this one to take stock out for what it sold or used, so that the move, its lot and its value are inventory's and the cost is posted once.
Given LON-SOHO's consumption location LON-SOHO/USE holds 3.200 KGM of BEANS-ETH at an average cost of 18.0000 a KGM; receipt R-5521 sold two lattes whose recipe uses 0.018 KGM each; production order UK01-MO-2026-00118 issues 84.000 KGM of GREEN-ETH, lot GE-0412 · when pos calls POST /goods-issues/from-source with source_kind pos_sale and move_refs pos:R-5521:1:1 and pos:R-5521:2:1; manufacturing calls it with source_kind production_issue and account_purpose wip; each call is repeated · then one move per line keyed move_ref (the repeat answers the same moves and changes nothing); pos's two moves of 0.018 KGM at 18.0000 are valued 0.32 and 0.33 (each rounded once, the remainder on the last so the issue totals round(0.036 x 18.0000) = 0.65), journal cost_of_sales / stock_valuation; the production issue is valued at its lot's cost and posts wip / stock_valuation; each answer lists {move_ref, move_id, quantity_base, value}; a pos_sale is never refused for stock (the sale has happened: a short location goes negative and is listed for the stock controller), a production_issue short of stock is refused (gate on_hand) unless the location allows negative stock; the lot is the one named, else FEFO. v7: an output or by-product received in error comes back out the same way, source_kind production_output_reversal naming reverses_move_ref "mfg:UK01-MO-2026-00118:output:1": the move leaves at the value it came in (the reversed move's), debits wip and credits stock_valuation, from the same lot; it is refused 409 {gate: on_hand} when that lot no longer holds the quantity (it was sold or used: correct it there first) and once per reversed move
· owned by inventory
INV-59when a production order reports output or a by-product (MFG-20), and when a till refund puts goods back on the shelf (pos POS-11)Another module hands this one what it produced or took back, so that the stock is received at the right cost and a lot can be traced back to what it was made of.
Given UK01-MO-2026-00118 reports 82.500 KGM of ROAST-ETH as lot RE-1180 at standard 9.3899, from input lot GE-0412 (84.000 KGM), and 2.000 KGM of CHAFF at its net realisable value 0.5000; refund R-5530 restocks one BAG-ETH-250 sold on R-5521 · when manufacturing calls POST /receipts with source_kind production_receipt and by_product_receipt; pos calls it with source_kind pos_refund_restock naming reverses_move_ref pos:R-5521:3:1 · then RE-1180 is received at 774.67 (82.500 x 9.3899 = 774.66675, rounded once) and credits wip, the chaff at 1.00 and credits wip; a lot link RE-1180 <- GE-0412 (84.000 KGM) is recorded, so GET /lots/ROAST-ETH/RE-1180/trace walks back to the green beans and GET /lots/GREEN-ETH/GE-0412/trace forward to every bag; the restocked bag is received at the cost it left at (the reversed move's value) and credits cost_of_sales; each is idempotent on move_ref; purchasing's source kinds are unchanged
· owned by inventory
INV-60when manufacturing releases a cost roll-up (MFG-07)A released roll-up becomes this module's dated standard prices, so that the standard is the one a second person approved and the stock is revalued on the day it starts.
Given UK01 values at standard; roll-up CR-2026-12 released by cost accountant B with ROAST-ETH 9.6100 a KGM from 2026-12-01 · when manufacturing calls POST /standard-prices with source_ref mfg:CR-2026-12, twice; the accountant had already scheduled 9.5000 for 2026-12-01 by hand · then without the accountant's row: a scheduled standard price (UK01, ROAST-ETH, 2026-12-01, 9.6100) with set_by B and source_ref, the repeat answers the same; revalued on 2026-12-01 by apply_standard_price (INV-48); with the accountant's different row for the same date the call is refused 409 (gate standard_price_taken: "a standard price of 9.5000 is already set for 2026-12-01 by <who>"), never overwritten; a valid_from of today or earlier is refused (gate starts_after_today); a company valued at average cost is refused (gate values_at_standard)
· owned by inventory
INV-61when the nightly replenishment runs and manufacturing is installedReplenishment counts what production will consume, so that components are bought in time for planned production, and leaves made products to production's planning.
Given GREEN-ETH at ROASTERY (buy, reorder point 500 KGM): 900 KGM on hand, 1,200 KGM needed by planned orders within the horizon; ROAST-ETH at ROASTERY (make, mrp) · when the proposal runs · then GREEN-ETH's projected available is 900 - 1,200 = -300 KGM, at or below its reorder point, so a buy proposal is made as for any product (rounded by product, sent through purchasing); the requirements are read from manufacturing's GET /dependent-requirements for the site and the horizon, never from mfg_ tables; ROAST-ETH is not proposed (procurement make or planning mrp: manufacturing's MRP-lite plans it)
· owned by inventory
How things move
receipt
scanned → done
- none → scanned by stock_operator · when readiness: on_order (purchasing's GET /purchase-orders/{purchase_order_id}/expected), units_exact, tracking_complete, within_tolerance; the bin is internal and not archived · purchasing's POST /purchase-orders/{purchase_order_id}/receipts called once, keyed by the delivery note: the ONE way a receipt is recorded; nothing in stock until purchasing posts each line back
- none → done by stock_operator · when readiness: rma_open (sales-order's expected return for that customer and product), within_rma, serial_was_delivered (a serial delivered to that customer) · numbered {warehouse}/RET/{seq:5}; a move CUSTOMER -> the return location in stock type quality where the reason inspects, valued at the cost it left at; record_delivery on the returns order (v3)
- done → done by stock_operator · when the return is in quality stock; every unit decided · restock (a type change to unrestricted, or a putaway), scrap (a goods issue, purpose scrap) or back to the customer at the value it came in; accepted and rejected reported to sales-order once (POST /sales-orders/{sales_order_id}/return-inspections)
- none → done by system · when readiness: source_kind production_receipt | by_product_receipt | pos_refund_restock; move_ref unique (a known one answers its move); units convert exactly; the location is internal; a pos_refund_restock names the move it reverses · numbered {warehouse}/IN/{seq:5}; a move PRODUCTION (or CUSTOMER) -> location; valued at unit_cost (production: standard or the order's cost; by-product: its net realisable value) or, for a restock, at the reversed move's cost; credits wip (production) or cost_of_sales (restock); a lot link per input lot named
- scanned → done by system · when purchasing calls POST /receipts per line, keyed move_ref pur:<receipt_id>:<line_no> (a receipt recorded on purchasing's own screen starts here) · numbered {warehouse}/IN/{seq:5}; a move SUPPLIER -> location per line, converted exactly, valued at quantity_priced x unit_cost / pricing_quantity rounded once (v2: purchasing's pricing unit and quantity); the unit's weights and volume copied onto the line (v2); average cost appended; scanned lots and serials attached; the valuation posted; {move_id, quantity_base} answered
delivery
waiting → ready → done → cancelled
- none → waiting by system · when a confirmed sales order with goods lines · reservation rows per line at the warehouse, as much as is available (never from a quality or blocked location, v2); the shortfall stated
- waiting → waiting by warehouse_manager · when no more than is available · needs reason · a reservation row appended, with who and why
- waiting → ready by system · when every line reserved in full, or the order accepts part shipments · the delivery appears on the pick list
- ready → ready by warehouse_manager · when deliveries of one warehouse, ready, not in another batch · a pick batch {warehouse}/PB/{seq:5} with one pick list in pick_sequence order (v3)
- ready → ready by stock_operator · when each bin holds what is picked from it (unless negative stock is allowed there) and the stock picked is unrestricted (v3: by stock row); a lot or serial per tracked unit; readiness: shelf_life (the lot proposed by the removal strategy, FEFO or FIFO, with the customer's minimum remaining shelf life; another lot only by a warehouse manager with a reason; never an expired lot unless the owner allows it); the line's unit converts exactly to the order line's unit · picked quantities recorded on the delivery, proposed in the warehouse unit (v2) and by lot (v3); with two-step picking, a transfer bin -> staging
- ready → ready by stock_operator · when contents never more than picked; a package type · packages with an SSCC each (claimed, never reused), contents and gross weight (v3)
- ready → done by stock_operator · when readiness: something_picked, stock_claimed (the claim rows on every bin and the warehouse were won), order_accepts (the sales order's record_delivery answered ok), weights_known (v2, only with delivery_needs_weights), not_blocked (v3: the order's fulfilment answer has no delivery block or incomplete delivery field), all_packed (v3, only with pick_pack_ship) · numbered {warehouse}/OUT/{seq:5}; gross and net weight and volume answered for shipping (v2); supplier-consignment stock picked is withdrawn first (purchasing told, v3); moves bin -> CUSTOMER at average or standard cost, or to the customer's consignment location for a CONS_FILL order (v3); the reservation consumed; the order records the delivery; the cost of goods posted to the purpose's account (sale, free_of_charge, consignment issue); what is left goes to a back-order delivery unless the order asks for complete delivery or the line closed within tolerance
- ready → cancelled by warehouse_manager · when nothing on it validated · needs reason · its reservations released
transfer
draft → in_transit → done → cancelled
- none → draft by warehouse_manager · when both locations internal, of one company (a subcontractor's or a customer's consignment location of the company counts as one, v3) · a draft transfer; between an unrestricted and a quality or blocked location it is a release or a block (v2); a transfer to a subcontractor provides components (v3); from a replenishment proposal, the supplying site's stock (v3)
- draft → done by stock_operator · when readiness: bin_capacity (quantity, weight and volume within the bin's capacity, from the copied measures) · the bin proposed by the putaway rules (fixed bin, addition to stock, next bin with room), or the one chosen with who; no value change (v3)
- none → done by system · when purchasing's subcontract order line names them (POST /subcontract-provisions, idempotent on move_ref); the source location holds them · a transfer to the subcontractor's location as stock still ours (special stock O), consumed later by the subcontract receipt
- none → done by warehouse_manager · when the location accepts the new type; the stock is there · needs reason · a move between types at the same location, no value change; blocking a lot changes it everywhere it is (v3)
- draft → done by stock_operator · when both bins in one warehouse; the source holds it; a lot or serial per tracked unit · numbered {warehouse}/INT/{seq:5}; one move bin -> bin; no value change
- draft → in_transit by stock_operator · when the source holds it · a move bin -> TRANSIT; counted in transit, available nowhere
- in_transit → done by stock_operator · when no more received than was shipped · a move TRANSIT -> bin; a shortfall is left in transit until a count of TRANSIT or a loss approved by a second person is applied (gate transit_cleared, v3); expected_arrival_on was set when shipped, from the site's planned days
- draft → cancelled by warehouse_manager
stock_count
counting → submitted → approved → applied → rejected
- none → counting by warehouse_manager · when an internal location subtree, or a list of products over every bin that holds them (v3); no other open count on it · every product (and stock type) with stock in scope listed, with no expected quantity shown to the counter
- counting → counting by stock_operator · when a quantity within bounds and the unit's decimals, in any unit of the product (v2); a lot or serial for a tracked product · one or more entries per line (5 PK24, 6 C62) summed exactly into counted_base; counted_at per line; expected is what the moves said at counted_at
- counting → submitted by warehouse_manager · differences and their value at average cost fixed on the count
- submitted → submitted by system · when the step is on and a line's difference is over the threshold · a suggestion per line; nothing adjusted
- submitted → applied by warehouse_manager · when the sum of the absolute VALUE differences across the lines is under count_approval_threshold, and no single line's absolute value difference is at or above count_line_value_limit · an adjustment move per line between the bin and LOSS; the loss or gain posted
- submitted → approved by stock_controller · when readiness: approver_not_counter (neither a counter nor the submitter, by email and by sign-in subject) · the decision recorded
- approved → applied by system · adjustment moves; the loss or gain posted
- submitted → rejected by stock_controller · needs reason · nothing applied
- rejected → counting by warehouse_manager · the lines are recorded again
goods_issue
draft → awaiting_approval → posted → cancelled
- none → draft by stock_operator · when readiness: cost_centre_valid (the ledger's cost centre, for purpose cost_centre), scrap_reason (for purpose scrap); the product's issue unit proposed (product PRD-29) · a draft goods issue with its purpose (cost_centre | scrap | internal_use), lines in any unit of the product
- draft → posted by stock_operator · when readiness: stock_claimed (bin and warehouse claim rows won), under_issue_threshold (the value is under issue_approval_threshold) · numbered {warehouse}/GI/{seq:5}; moves bin -> {company}:CONSUMPTION or :LOSS at average or standard cost; a journal per purpose (consumption with the cost centre on the line, scrap) posted
- draft → awaiting_approval by stock_operator · when the value is at or above issue_approval_threshold · waits for a stock controller; nothing moves
- awaiting_approval → posted by stock_controller · when readiness: approver_not_requester (by email AND sign-in subject), stock_claimed · posted as post_goods_issue
- awaiting_approval → cancelled by stock_controller · needs reason
- draft → cancelled by stock_operator
- none → posted by system · when readiness: source_kind pos_sale | production_issue | production_output_reversal (v7: an output or by-product received in error taken back out, naming reverses_move_ref); each move_ref unique (a known one answers its move); units convert exactly; stock_claimed; on_hand for production_issue (a pos_sale posts and may go negative, listed for the stock controller) · numbered {warehouse}/GI/{seq:5}; moves location -> {company}:CONSUMPTION per line at average or standard cost (the lot named, else FEFO); a journal per call: cost_of_sales (pos_sale) or wip (production_issue) / stock_valuation; {move_ref, move_id, quantity_base, value} answered
- posted → posted by warehouse_manager · when not reversed before; the issue's period open in the ledger · needs reason · reversing moves naming the original, valued as it was, and a reversing journal (SAP 202 / 552)
replenishment_proposal
proposed → sent → dismissed
- none → proposed by system · when a product planned at the site (product's GET /product-sites) with procurement buy or transfer (v6: make or mrp is manufacturing's, skipped); projected available (v6: less manufacturing's dependent requirements in the horizon, GET /dependent-requirements, when manufacturing is installed) at or below its reorder point; once per (site, product, business date) · a proposal: projected figures, the site row's valid_from, quantity to the max (min_max) or the lot size, rounded by product's round-proposal; buy or transfer from the supplying site
- proposed → sent by warehouse_manager · when the quantity may be changed; it still meets the purchase rule · buy: one purchase request in purchasing (POST /purchase-requests/from-replenishment); transfer: a draft transfer from the supplying site
- proposed → sent by system · when the owner's replenishment_mode is auto from a date on or before today · as accept_replenishment, by the system's client
- proposed → dismissed by warehouse_manager · needs reason
standard_price
scheduled → effective
- none → scheduled by accountant · when readiness: starts_after_today; the company values at standard on that date, or switches to it that day · a dated standard price per company and product (NUMERIC(19,4) per base unit)
- none → scheduled by system · when readiness: starts_after_today; values_at_standard (the company values at standard on valid_from); standard_price_taken (no other price for that company, product and date) · as schedule_standard_price, with set_by the releaser and source_ref; idempotent on (company_code, product_id, valid_from, source_ref)
- scheduled → effective by system · when valid_from is today (business_timezone) · a revaluation row of the quantity on hand at the old and new price, and its journal (stock_valuation against revaluation), journal_id derived (company, product, valid_from), posted once
What it keeps
| Thing | Meaning | Identified by | Shared? |
|---|---|---|---|
| warehouse | a site where stock is kept, belonging to one company | warehouse_id: the customer's own short code (WH1), fixed once set | module-owned |
| location | a place stock can be in, real (a zone, a bin) or virtual (supplier, customer, loss, transit, opening) | location_id: the full path code (WH1/A/01), VARCHAR, fixed once a move names it; virtual ones are {company_code}:SUPPLIER, :CUSTOMER, :LOSS, :TRANSIT, :OPENING | module-owned |
| stocked product | how this module treats a product it stocks (its tracking), from a date | product_idvalid_from | module-owned (append-only); the product itself references product |
| lot link | an output lot made from an input lot (v6, INV-59): the step production adds to the trace | product_idlot_codeinput_product_idinput_lot_codemove_ref | module-owned (append-only) |
| lot | a batch or a serial number of one product | product_idlot_code | module-owned |
| stock document | a receipt, a delivery, a return, a transfer or an adjustment: the paper a move is recorded on | document_id: derived from its source (rcpt:pur:{receipt_id}, rts:pur:{return_id}, dlv:so:{sales_order_id}:{n}, ret:{delivery document_id}:{n}, int:{warehouse_id}:{client request id}, adj:{count_id}, odoo:{db}:stock.picking:{id}); the number ({warehouse}/IN/00001) is stamped when it is done | module-owned |
| document line | what a document expects, picks or receives for one product, in the unit it was written in | document_idline_no | module-owned |
| stock move | a quantity of one product (and lot) that went from one location to another at a moment; the ledger | move_id: {document_id}:{line_no}:{n} | module-owned (append-only: never updated or deleted) |
| stock claim | the row two writers race for, so only one takes stock out of a place at a time | product_idlocation_idlot_codestock_typeownerclaim_no | module-owned (append-only; a plain INSERT, the loser gets 23505, re-reads and is refused or retries) |
| reservation | stock at a warehouse held for a sales order line | sales_order_idso_line_noseq | module-owned (append-only); reserved per line is the sum of its rows less what its deliveries consumed |
| stock count | one counting of a location subtree, its lines and its decision | count_id: {warehouse_id}:C-{n}, from the count series | module-owned |
| count line | what was found for one product (and lot) in one bin | count_idlocation_idproduct_idlot_code | module-owned |
| count entry | one thing the counter wrote for a count line, in the unit they counted in (5 PK24; 6 C62) (v2) | count_idlocation_idproduct_idlot_codeentry_no | module-owned (append-only while counting; a wrong entry is a negative entry) |
| valuation row | the average cost and value of one product in one company after one move | company_codeproduct_idseq | module-owned (append-only; seq claimed with a plain INSERT) |
| posting | what was asked of the ledger for one document event, and its answer | document_idevent | module-owned |
| account map | which ledger account each stock purpose uses, per company, from a date | company_codepurposevaluation_classvalid_from | module-owned (configuration; references gl's accounts) |
| number series | the next number of a warehouse's receipts, deliveries, returns, transfers and counts | series_id ({warehouse_id}/IN, /OUT, /RET, /INT, /C, /GI (v3), /PB (v3), SSCC:{company prefix} (v3))number | module-owned (a claim row per number, plain INSERT) |
| migration map | the Odoo record each migrated row came from | odoo_dbodoo_modelodoo_id | module-owned |
| odoo move history | Odoo's stock moves before the cut-over, kept to read, never part of the ledger | odoo_dbodoo_move_line_id | module-owned (read-only after the run) |
| expected return | a customer return sales-order authorised (an RMA), what it expects back and what has come (v3) | rma_refline_no | module-owned; written by sales-order's client through POST /expected-returns |
| inspection | what an inspector decided for each unit of a returned line (v3) | document_idline_nodecision_no | module-owned (append-only) |
| abc class | a product's A, B or C class at a warehouse, from a date (v3) | warehouse_idproduct_idvalid_from | module-owned (append-only; computed monthly, overridable with a reason) |
| putaway rule | where goods of a product or category go when put away at a warehouse (v3) | warehouse_idseqvalid_from | module-owned (configuration, dated) |
| pick batch | deliveries picked together in walking order (v3) | pick_batch_id ({warehouse}/PB/{seq:5}, from the series) | module-owned |
| package type | a box, a crate or a pallet we pack into (v3) | package_type_code | module-owned (configuration) |
| package | one packed box or pallet of a delivery, with its SSCC (v3) | sscc (18 digits: extension digit, the GS1 company prefix, a serial reference from the series, check digit) | module-owned (the serial reference claimed with a plain INSERT on (company prefix, reference): never reused) |
| replenishment proposal | what the nightly run proposed to buy or move for a product at a site, and what became of it (v3) | warehouse_idproduct_idbusiness_date | module-owned |
| standard price | a product's standard cost in one company, from a date (v3) | company_codeproduct_idvalid_from | module-owned (append-only; valid_from after today) |
| settings | how this business keeps stock | keyvalid_from | module-owned (configuration, dated) |
| suggestion | what an AI step proposed and what a person decided | count_idlocation_idproduct_idlot_codestep | module-owned |
A quantity kept on the product AND in the warehouse, or a delivery recorded on the order by hand AND shipped from stock, is how stock is counted twice. One ledger of moves; the order hears about a delivery only from it.
What runs on its own
| Story | When | What |
|---|---|---|
| INV-30 | on read | on hand, reserved and available from inv_move and inv_reservation |
| INV-31 | in the same request as the move | the next valuation row for (company, product) |
| INV-32 | when a document is done, and a retry of pending postings | post the document event's journal through the ledger's route |
| INV-42 | first business day of each month | ABC classification per warehouse |
| INV-44 | nightly | replenishment proposals from product's site data |
| INV-56 | start of each business day | standard prices taking effect today, their revaluation rows and journals |
| INV-33 | when a count is submitted | the variance suggestion |
Questions that shape your version
Read these out and let the customer correct one — people rarely recall a policy on demand and can always react to one. Standard is a named authority you can look up and hold us to. Commonly seen is exactly that: arrangements we have met, with no survey behind them. A customer doing none of them is not doing it wrong.
- v6: When a till sells what the system thinks is not on the shelf, do we still take it out of stock?
- How many sites do you keep stock in, and do you need shelf or bin locations, or just "in the warehouse"?
- shop or small office
- one site, no bins
- wholesale
- one or two sites, zones and bins
- Do you ever ship something the system says you do not have (and fix it after)?
- most firms
- never, and the system should stop it
- fast moving retail
- allowed in the shop, never in the warehouse
- warning
- negative stock is valued at the last average and leaves a cost difference to correct when the receipt comes in
- Do you need batch or serial numbers (recalls, warranties, expiry)?
- food and cosmetics
- lots with expiry dates
- tools and electronics
- serial numbers on the expensive items
- most others
- neither
- How do you value stock?
Standard IAS 2 Inventories paras 25-27 permit FIFO or weighted average cost for interchangeable items (FRS 102 section 13 likewise in the UK)
- most smes
- weighted average, as here
- manufacturers and distributors with stable costs
- standard cost, with purchase price variances shown
- When a stock count finds a difference, who approves the write-off, and above what amount?
- small firms
- the owner, above a few hundred pounds
- firms with a controller
- every count over a small amount, by finance
- Does a delivery leave when part of the order is ready, or only when all of it is?
- Do you use stock internally or scrap it, and who approves above what value?
- Does stock expire, and do customers require a minimum shelf life?
- Should the system propose (or send) reorders when stock runs low?
- Do suppliers keep consignment stock with you, do you keep stock at customers, or send components to subcontractors?
- Do you put away to fixed bins, pick several orders together, and pack into numbered pallets or boxes?
What you can change yourself
These are settings, not code: someone in your team changes them on a screen, without a developer and without a release.
- the sites, their company and address
- zones and bins, their barcodes, which are archived, and each internal location's stock status (unrestricted, quality, blocked; v2)
- which products are tracked by lot or serial (only with lots_enabled)
- the ledger account per company (and valuation class, v3) for stock_valuation, stock_received_not_billed, cost_of_goods_sold, inventory_loss, consumption, inventory_scrap, free_of_charge, price_difference, revaluation, consignment_liability, subcontracting
- where goods are put away per product or category (v3)
- boxes and pallets with their tare and size (v3)
- standard prices per company and product from a date (v3; inv:valuation:write)
- how this business keeps stock; every row dated from today or later, never back-dated
- the AI step's mode (ai_steps: off | suggest); inv:settings:controls, and turning it on is recorded as the owner's consent
Where the platform limits what we can promise
A bare INSERT of an already-committed key is rejected (23505); it is not an upsert. the claim rows, the valuation seq and the number series use exactly that as the lock: the loser re-reads and decides
A SELECT does not see the same open transaction's writes. the move, its claim and its valuation row are computed from reads taken before the write; the derived on hand is re-read after commit
the tables reader serves 16 concurrent reads validation storms (a wave of picks) go through an admission semaphore below 16 with the retry on the documented markers
For builders
- Module spec — this page, for agents
- The lifecycle and the design template
Code
Public repositories, anonymous clone, one release tag each. Read README.md and AGENTS.md first.
- erp-brick-inventory (brick, v0.1.2)
git clone --depth 1 --branch v0.1.2 https://git.dodil.io/dodil/erp-brick-inventory.git
ssh:[email protected]:dodil/erp-brick-inventory.git - erp-brick-product (brick, v0.2.2)
git clone --depth 1 --branch v0.2.2 https://git.dodil.io/dodil/erp-brick-product.git
ssh:[email protected]:dodil/erp-brick-product.git - erp-platform (platform, v0.9.13)
git clone --depth 1 --branch v0.9.13 https://git.dodil.io/dodil/erp-platform.git
ssh:[email protected]:dodil/erp-platform.git
Known gaps in the reference
- average or standard cost per company (v3); no FIFO layers; no landed costs (freight and duty added to a receipt's cost: purchasing's to send as part of unit_cost)
- no inter-company moves (a sale and a purchase); drop-shipping never touches stock (sales-order v5 THIRD_PARTY with purchasing)
- v3 (issues, scrap, FEFO, serials end to end, ABC and cycle counts, stock types per row, special stocks, ATP, putaway, pick batches, packing, transit dates, replenishment, standard cost) is specified, not built
- cross-module, assumed by v3: purchasing's GET /expected-receipts, POST /purchase-requests/from-replenishment, POST /consignment-withdrawals, consignment and subcontract orders posting through POST /receipts; gl's GET /cost-centres/{cost_centre}; sales-order v5's returns order, fulfilment route and inspection route
- full EWM is deferred (sap_parity): no warehouse tasks or orders, RF queues, slotting, labour management, yard or cross-docking; carrier booking and shipping labels are not modelled
- a return to a supplier starts only in purchasing (its return row, posted here through POST /returns-to-supplier); none is started from this module's screens
- replenishment is consumption-based (reorder point, min / max, fixed lot) from product's site data (v3); MRP with dependent demand waits for production (M7)
- no manufacturing consumption or production locations (M7 Make & sell; the product's production unit is kept for it)
- goods issue to a cost centre and scrap are in v3 (INV-37, INV-38); issues to projects (a WBS element) wait for projects' cost objects (M5)
- catch weight and batch-specific units of measure: designed, columns reserved, off until M7 (`deferred:`)
- pick batches and packing are in v3; carriers and shipping labels are not
- sales-order v3 (spec) reserves through INV-22 and refuses hand-recorded deliveries of stocked lines; until erp-brick-sales-order builds it, the composition must not give fulfillers so:order:deliver on stocked goods
- processes have no APQC PCF ids yet (pcf_id null): erp-bench/standards carries only the category ids (4.0 = 20022), not the warehousing elements; to be verified against PCF v8.0 before sign-off
- company_code is a code validated against nothing until a shared company key exists (shared.yaml has none)