LA IDEA ÚTIL

Lleva cantidad, valor y costo medio después de cada movimiento. En este modelo, las entradas recalculan el promedio ponderado y las salidas se valoran con el promedio vigente.

Declara el modelo y la unidad

Odoo documenta AVCO como un costo promedio ponderado que se actualiza al recibir productos. Su documentación distingue el método de valoración de la estrategia para escoger físicamente qué unidades retirar. Aquí reconstruimos una versión aritmética sencilla, sin configurar Odoo ni registrar asientos en una empresa.

El caso ficticio utiliza una sola referencia P, unidades intercambiables y cantidades positivas. Los costos se expresan en unidades monetarias e incluyen todo el costo que el ejercicio asigna a la entrada. Dejamos fuera impuestos, fletes adicionales, devoluciones, ajustes de factura e inventario negativo; si existieran, necesitarían su tratamiento explícito.

Abre el registro con cantidad y valor

La primera entrada es de seis unidades a 20 cada una. La cantidad queda en 6 y el valor en 6 × 20 = 120. El costo medio es 120 / 6 = 20 por unidad. Son tres campos relacionados: cantidad, valor y promedio; no tres cantidades que puedan sumarse entre sí.

Después salen dos unidades antes de la siguiente entrada. Con el promedio vigente de 20, la salida lleva un valor de 2 × 20 = 40. Quedan cuatro unidades y un valor de 120 − 40 = 80. Al dividir 80 / 4 obtenemos otra vez 20: disminuyen cantidad y valor, no el promedio unitario.

Incorpora una entrada a otro costo

Ahora llegan cuatro unidades a 30 cada una, con un valor de 120. Las cuatro que permanecían valían 80, así que el nuevo saldo es 4 + 4 = 8 unidades y 80 + 120 = 200 de valor. El promedio móvil pasa a 200 / 8 = 25.

No se reemplazan todas las existencias por el último costo de 30. Tampoco corresponde sumar las diez unidades recibidas históricamente y dividir los 240 de compras entre diez para reconstruir este saldo móvil: dos unidades ya salieron antes. Esa cuenta produciría 24, pero respondería a otro agrupamiento, sin respetar la secuencia elegida.

Valora la siguiente salida con la referencia vigente

Si después salen tres unidades, usamos el promedio actual de 25. Su valor es 3 × 25 = 75. Quedan 8 − 3 = 5 unidades y 200 − 75 = 125 de valor; 125 / 5 sigue siendo 25. El ejercicio no identifica qué piezas físicas concretas se entregaron.

Comprueba también el conjunto: las entradas aportaron 120 + 120 = 240. Las salidas acumularon 40 + 75 = 115 y el inventario final vale 125. Se conserva 115 + 125 = 240. No hemos calculado ingresos de venta, cobros ni beneficio: una salida valorada no contiene automáticamente esos datos.

Conserva la cronología antes de conciliar

La ficha debe guardar referencia, fecha, cantidad entrante o saliente, costo aplicado, variación de valor y saldo posterior. Añade el método y los supuestos utilizados. Un total de compras y un conteo final, sin movimientos intermedios, no bastan para reconstruir cómo llegó cada salida a su valor en este modelo.

La política aplicable a un negocio real exige su propia revisión contable y operativa. Esta explicación no elige un método para todas las empresas. Permite seguir una pregunta concreta: por qué una recepción puede cambiar el promedio mientras una salida normal, valorada al promedio vigente, reduce el saldo sin recalcular ese costo unitario.

COMPLETE ENGLISH TRANSLATION

Moving average cost: an issue reduces value without changing the average

Units arrive at a different cost and the inventory average changes. Some subsequently leave, yet the average may stay unchanged. Understanding that requires a sequence, not merely adding month-end invoices.

Open the English edition ↗

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.

完整中文翻译

移动加权平均成本:出库减少价值,却不改变平均单价

另一成本的物料到货,库存平均成本随之变化。随后部分出库,平均成本却可能保持不变。理解它需要按顺序记录,而不是月底只把发票相加。

打开中文独立页面 ↗

每次移动后保留数量、价值和平均成本。本模型在入库时重算加权平均,出库则使用当时平均成本。

明确模型与单位

Odoo 将 AVCO 描述为在产品收货时更新的加权平均成本,文档也区分估值方法与实际拣选物料的出库策略。这里重建简化算术模型,不配置 Odoo,也不为企业记账。

虚构案例只有物料 P,单位可以互换,库存数量为正。成本使用货币单位,并包含练习为该入库分配的全部成本。排除税费、额外运费、退货、发票调整与负库存;如有这些情况,就需明确处理。

从数量与价值开始

首次入库六件,每件 20。数量为 6,价值为 6 × 20 = 120,平均成本为 120 / 6 = 20。数量、价值和平均单价互相关联,不能把它们当作三个可相加的数量。

下次入库前先出库两件,按当时平均成本 20 计值,出库价值为 2 × 20 = 40。剩四件,价值 120 − 40 = 80。80 / 4 仍为 20:数量与价值下降,平均单价不变。

加入另一成本的入库

现在收到四件,每件 30,入库价值 120。原来剩余四件价值 80,因此新余额为 4 + 4 = 8 件,价值 80 + 120 = 200。移动平均成本变成 200 / 8 = 25。

最新单价 30 不会重置全部库存价值。也不能用历史十件入库与采购总额 240,直接计算本模型当前余额,因为两件已经在第二次收货前出库。240 / 10 得到 24,却采用另一种归组,忽略了选定顺序。

用现行平均成本计算下一次出库

随后若再出库三件,就使用现行平均成本 25,出库价值为 3 × 25 = 75。剩余 8 − 3 = 5 件,价值 200 − 75 = 125;125 / 5 仍是 25。练习不指定实际交付了哪几件实物。

也要核对全程:入库价值共 120 + 120 = 240,出库价值共 40 + 75 = 115,期末库存价值 125。因此 115 + 125 = 240。没有计算销售收入、回款或利润;出库估值本身不自动包含这些信息。

核对前保留时间顺序

记录应包含物料、日期、入库或出库数量、适用成本、价值变化及后续余额,并写明方法与假设。只有采购总额和最终盘点数,没有中间移动,就不能重建本模型中每次出库的估值来源。

真实企业政策仍需独立的会计及运营审查,本说明不为所有企业选择同一种方法。它回答具体问题:入库为何可能改变平均成本,而按现行平均成本估值的正常出库,会减少余额却不重算单位成本。

FUENTES Y NOTAS EDITORIALES

Fuentes y método

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

Fuentes consultadas el 1 de diciembre de 2026. Los casos y datos numéricos de los ejercicios son ficticios. Editorial standards · Disclosures.