Product A produces Product B and Product B produces Product C.
I need to be able to enter the sale of product C and automatically generate the corresponding productions if I do not have stock. And if I don’t have stock of product A, it generates the purchase order.
I have checked the modules sale_supply and stock_supply but it does not reach the level of generating the intermediate productions. It generates the production of Product C but it would be great that when confirming the production and checking stock when there is no stock it generates the production of Product B, and so on until it sees that there is no stock of Product A and generates the purchase request.
Is there any way to do it with the current modules?
You can use sale_supply_production to create a production request when a sale is processed. You just need to set the supply_on_sale property to “Always” or “Stock First”. This can be used to create Product C production.
For other products, you need to activate stock_supply_production and use the Supply Stock wizard to generate al the needed production requests and purchase requests based on the available stock levels.
As you want to use first the stock before producing or purchase, you must not use the sale_supply* modules but rely only on the stock_supply and stock_supply_production and run the Supply Stock wizard frequently.
Thank you, this is what I was looking for. I was hoping for a more automatic way, as production progresses it will generate the purchase or production for the entry. But I can use the wizard
There is a cron job to automate the Supply Stock wizard but this is not activated by default.
If you want more automation feel free to activate the wizard to do the recomputation on scheduled periods.