My costing setup is:
Costing Method = Average
Stock Valuation = Real Time
When I try to receipt a Purchase order item with zero unit price,
Error is saying that I must set a cost for the item.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
My costing setup is:
Costing Method = Average
Stock Valuation = Real Time
When I try to receipt a Purchase order item with zero unit price,
Error is saying that I must set a cost for the item.
I have found a better solution in latest Odoo 12 you could add System Parameter
key = stock_account.allow_zero_cost
Value = True
Nice! Like you said in another comment, this is not needed in 13.0. I checked and they completely removed that validation from the code.
If it is the first receipt, the product must have a cost. To be able to do that, you must first change the costing method. (Or better change what product category it belongs to). Then you get access to change the cost value of the product. After that change costing method back.
I'm just also wondering, why would there be a cost computation problem?
Formula for
Average Cost = (Prev. Cost * Prev. Qty + PO Price * PO Qty) / (Prev. Qty + PO Qty)
So if PO Price is zero, regardless of if there is previous Qty, Average Cost would be zero, zero should not be error .
Update, I tested in Odoo 13 and it does not error when zero price in PO line
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
computed fields
Solved
|
|
1
Apr 24
|
1468 | |
|
1
Dec 23
|
2734 | ||
|
2
Nov 22
|
2418 | ||
|
0
Nov 22
|
2737 | ||
|
0
Oct 22
|
1066 |