Issue 9989

Title
Failed to format domain of exception with string as selection
Priority
bug
Status
testing
Nosy list
ced, reviewbot
Assigned to
ced
Keywords
backport, review

Created on 2021-01-12.18:31:00 by ced, last changed 1 week ago by reviewbot.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-01-12.18:30:59

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.

History
Date User Action Args
2021-01-12 18:49:07reviewbotsetmessages: + msg63855
nosy: + reviewbot
2021-01-12 18:33:30cedsetkeyword: + backport, review
reviews: 349271002
status: in-progress -> testing
2021-01-12 18:31:00cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)