I have the requirement of set Purchase Order name in Sale Order line. When I confirm SO at that time it will create PO of selected Vendor with Dropship & Make-To-Order Route. This functionality can't be worked with 2-step & 3-step shipment with Make-To-Order route.
When I confirm the SO at that time it creates PO but with 2-step & 3-step shipment with Make-To-Order route can't get sale_line_id at the run_by method of stock.rule model. Due to that, I can't set Purchase Order id in the specific sale order line.
Can anyone help me to find the solution of the above issue?