How can purchased products be created automatically regardless of the opportunity status?

Hi all,

the goal is that a purchased product is automatically created as soon as the revenue line item has the sales_stage "won". This should happen regardless of the status of the opportunity.
How can purchased products be created automatically regardless of the opportunity status?


In the RevenueLineItemHooks file I commented out the part "Check parent opp and this bean for sales stage". However, it still only creates a purchased product when the opportunity is "won".

Can you help me please?

Many thanks in advance.

best regards
Theresa