I have product A set to real price and perpetual stock valuation. I made a purchase of A and the stock moves were recorded with the correct price. Now the cost price is still zero because nothing was consumed yet.
Product A is in the bill of materials of product B
After confirming a MO of product B and consuming some amount of the product A the cost price of A is not being updated.
The stock.move -> unit_price and stock.quant -> cost is not updated neither for none of the products (zero)
It seems like the MRP module is incomplete or I am doing smth wrong.
If I sell product A directly the cost price is updated. But not if it's being consumed during production. Can someone explain please in which place (in the code) the real cost is being updated