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

def recv_get_id(self, result):

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