(self, field_name)
return self._convert_value(value, field_name)
Small tool to extract the first not nullvalue of a field: its value
        or the ids if this is a relational field.
Small tool to extract the first not nullvalue of a field: its value
        or the ids if this is a relational field.
Small tool to extract the first not nullvalue of a field : its value or the ids if this is a relational field .
def _find_first_notnull(self, field_name):
        """ Small tool to extract the first not nullvalue of a field: its value
        or the ids if this is a relational field. """
        value = next((reg[field_name] for reg in self if reg[field_name]), False)
        return self._convert_value(value, field_name)
def _find_first_notnull ( self , field_name ) : value = next ( ( reg [ field_name ] for reg in self if reg [ field_name ] ) , False ) return self . _convert_value ( value , field_name )