'Automatically add manufacturing orders

In dolibarr, I have an endproduct (EP) consisting of two raw materials and one intermediate product (IP). The IP itself consists of two raw materials.

When I add a manufacturing order for the EP and the IP is not in stock, I'd like to add a manufacturing order for the IP automatically.

edit:{ EP and IP have their own bills of material, which are also assigned as their standard bom. }

I searched the interwebs and tried to achieve this in dolibarr, but to no avail.

Is that even possible without a module / plugin? Can anyone point me in the right direction?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source