'Return a browse_record
if not found and raise_if_not_found is False return None'

@api.model
def xmlid_to_object(self, xmlid, raise_if_not_found=False):

    t = self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)
    (res_model, res_id) = t
    if (res_model and res_id):
        record = self.env[res_model].browse(res_id)
        if record.exists():
            return record
        if raise_if_not_found:
            raise ValueError(('No    record    found    for    unique    ID    %s.    It    may    have    been    deleted.' % xmlid))
    return None
