Supply on sale with production request

I have trouble with the “nested” productions. The main is that a production can be changed (quantities, BoM etc.) until it is running. So this means that creating nested order before will require a complex synchronization mechanism with major difficulties like: “What to do with a nested productions is running but the BoM of the main one is changed and no more required the running one”…
I think the “nested” production is a false problem or at least it is not a good solution to the real problem.
I see two cases:

  • The production is indeed composed of multiple BoM (to ease management) but it should be treated as a single production. This should be solved with phantom BoM.

  • The main production requires materials that are unique. So they are many possible improvements here:

    • Allow to define BoM using template.
    • Create variant on the fly.
    • Allow to customize the grouping_filter used in generate_requests.

So for me, the sale_supply_production should only manage to create the first level of production.