THE USEFUL IDEA

Keep quantity, value and average cost after every movement. In this model, receipts recalculate the weighted average and issues use the current average.

State the model and unit

Odoo documents AVCO as a weighted average cost updated upon product receipt. Its documentation distinguishes valuation from the strategy for physically selecting units to remove. We reconstruct a simple arithmetic version, without configuring Odoo or posting company accounting entries.

The fictional case uses a single item P, interchangeable units and positive quantities. Costs are in currency units and include all cost assigned to a receipt by this exercise. We exclude taxes, additional freight, returns, invoice adjustments and negative inventory; each would require explicit treatment if present.

Open with quantity and value

The first receipt is six units at 20 each. Quantity becomes 6 and value 6 × 20 = 120. Average cost is 120 / 6 = 20 per unit. Quantity, value and average are related fields, not three quantities to add together.

Two units then leave before the next receipt. At the current average of 20, the issue carries 2 × 20 = 40 of value. Four units remain, worth 120 − 40 = 80. Dividing 80 / 4 still gives 20: quantity and value decrease, while the unit average does not.

Add a receipt at another cost

Four units now arrive at 30 each, worth 120. The four remaining units were worth 80, so the new balance is 4 + 4 = 8 units and 80 + 120 = 200 of value. The moving average becomes 200 / 8 = 25.

The latest cost of 30 does not replace every unit's value. Nor can you reconstruct this moving balance by dividing total purchases of 240 by all ten historically received units: two already left before the second receipt. That gives 24 but uses another grouping, disregarding the chosen sequence.

Value the next issue at the current reference

If three units subsequently leave, use the current average of 25. Their value is 3 × 25 = 75. The balance is 8 − 3 = 5 units and 200 − 75 = 125 of value; 125 / 5 remains 25. The exercise does not identify the particular physical pieces delivered.

Also check the whole sequence: receipts contributed 120 + 120 = 240. Issues accumulated 40 + 75 = 115, and closing inventory is worth 125. The reconciliation is 115 + 125 = 240. No sales revenue, collections or profit was calculated; a valued issue does not automatically contain those data.

Preserve chronology before reconciling

The record needs item reference, date, incoming or outgoing quantity, applied cost, value change and subsequent balance. Include the method and assumptions. Total purchases and a final count, without intermediate movements, cannot reconstruct how each issue obtained its value in this model.

A real business's policy needs its own accounting and operational review. This explanation does not select one method for every company. It follows a specific question: why a receipt can change the average while a normal issue, valued at the current average, reduces the balance without recalculating that unit cost.

SOURCES & EDITORIAL NOTES

Follow the evidence.

  1. Odoo 19 — Average price on returned goods: AVCO formula and issues ↗
  2. Odoo 19 — Valuation cheat sheet ↗

Sources checked December 1, 2026. The exercise scenarios and figures are fictional. Our editorial standards.

Good ideas are better when they travel.