Get the reference of sale order in delivery note


I want to get the reference of dependent sale order from the particular delivery note into my code.

Can anyone suggest me?

Thank You.


Sales Order reference is stored in the items table so you will need to iterate the Items table to get the sales orders

e.g. [row.against_sales_order for row in doc.items] where doc is Delivery Note document

1 Like


Thank You so much.