parameters: (self, module, xml_id, raise_on_access_error=False)
return_statement: return model, False
docstring: Returns (model, res_id) corresponding to a given module and xml_id (cached), if and only if the user has the necessary access rights
          to see that object, otherwise raise a ValueError if raise_on_access_error is True or returns a tuple (model found, False)
docstring_summary: Returns (model, res_id) corresponding to a given module and xml_id (cached), if and only if the user has the necessary access rights
          to see that object, otherwise raise a ValueError if raise_on_access_error is True or returns a tuple (model found, False)
docstring_tokens: Returns ( model res_id ) corresponding to a given module and xml_id ( cached ) if and only if the user has the necessary access rights to see that object otherwise raise a ValueError if raise_on_access_error is True or returns a tuple ( model found False )
function: def check_object_reference(self, module, xml_id, raise_on_access_error=False):
          """Returns (model, res_id) corresponding to a given module and xml_id (cached), if and only if the user has the necessary access rights
          to see that object, otherwise raise a ValueError if raise_on_access_error is True or returns a tuple (model found, False)"""
          model, res_id = self._xmlid_lookup("%s.%s" % (module, xml_id))[1:3]
          #search on id found in result to check if current user has read access right
          if self.env[model].search([('id', '=', res_id)]):
              return model, res_id
          if raise_on_access_error:
              raise AccessError(_('Not enough access rights on the external ID:') + ' %s.%s' % (module, xml_id))
          return model, False
function_tokens: def check_object_reference ( self , module , xml_id , raise_on_access_error = False ) : model , res_id = self . _xmlid_lookup ( "%s.%s" % ( module , xml_id ) ) [ 1 : 3 ] #search on id found in result to check if current user has read access right if self . env [ model ] . search ( [ ( 'id' , '=' , res_id ) ] ) : return model , res_id if raise_on_access_error : raise AccessError ( _ ( 'Not enough access rights on the external ID:' ) + ' %s.%s' % ( module , xml_id ) ) return model , False