How to Fetch data from Sales Order and Insert into Purchase Order with Deluge

How to Fetch data from Sales Order and Insert into Purchase Order with Deluge

Hello,

I am wanting to write a Deluge script that would take the shipping address on a Sales Order and upon conversion to a Sales Order automatically insert it into that corresponding PO. I am new to Deluge but understand that it has great capabilities.

Thank you!