How to connect fields of todo to sales order

I’m trying to connect todo and sales order fields and then add condition if todo has sales order assign then write it in one of the sales order field