Odoo 14
I'm attempting to make a view to access all PO, deliver and receipt info for each line item of the POs. I have got close but I am stuck on an issue.
If a Subcontracting PO is created with multiple items where we have to ship out product to the vendor I assume the flow goes like this:
PO==>Receipt Order==>Outgoing orders
So per PO line item I am able to get the Po number, easy. I am able to get the receipt order, easy all items are on one receipt. The problem is getting the outgoing delivery orders I am pulling all of them that pertain to the PO and not just the PO line item. If I have 5 subcontracted items on the PO I get 5 ids.
So how do I map the Subcontracted PO line Item to the outgoing delivery that is associated with it?