Failed to format domain of exception with string as selection
When trytond
raises a DomainValidationError
with an invalid domain and the field definition, this definition may contain as selection
only a string. The DomainParser
crashes when trying to format the value to display in the error message because it is expecting a list of selection.
The client at this place (processing an RPC error) can not really make a second call to convert the selection. So I think we should fall-back to the internal value.