'Check whether value is among the valid values for the given
selection/reference field, and raise an exception if not.'

@api.model
def _check_selection_field_value(self, field, value):

    field = self._fields[field]
    field.convert_to_cache(value, self)
