'Simple helper function to get the record id of the newly
created inv_send row so it can be used to open the record'

def send_get_id(self, result):

    if (len(result['after']) > 0):
        new_inv_send = result['after'].records[0]
        return new_inv_send.inv_send.id
    return None
