Recomputation of product cost price

Hello, I’ve recently had an issue with production costs due to a problem in a custom module, after fixing it I need to recompute the cost price of some of the produced products, but I’m not really sure on how to proceed, as if I understood correctly, once a production is done the product cost price is updated by Move.do, but I guess calling this function on already finished moves is not a great idea, any idea?
Thanks a lot.

I guess you have changed the unit price of stock move. Then in this case you must also set unit_price_updated to True so the re-computation task will recompute everything that depends on this price.

Yes I did change the unit_price, it worked as you say, thank you so much.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.