Skip to Content
Menu
This question has been flagged
2 Replies
5843 Views

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. 

Avatar
Discard
Author Best Answer

I have found a better solution in latest Odoo 12 you could add System Parameter 

key = stock_account.allow_zero_cost

Value = True

Avatar
Discard

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.

Best Answer

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.


Avatar
Discard
Author

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 .

Author

Update, I tested in Odoo 13 and it does not error when zero price in PO line

Related Posts Replies Views Activity
1
Apr 24
1468
1
Dec 23
2734
2
Nov 22
2418
0
Nov 22
2737
0
Oct 22
1066