def get_partner_id_from_user_id(cr, user_id):
    """
        Get the new partner_id from user_id.
        :param user_id : user previously used.
    """
    cr.execute(
        """
        SELECT partner_id
        FROM res_users
        WHERE id=%s"""
        , (user_id,))
    return cr.fetchone()[0]
