Created on 2021-05-12.14:55:24 by pokoli, last changed 2 months ago by ced.
What are the other values of the record that appear in the full domain?
I guess there is a problem in the domain inversion code. It will be good to have a reproducible failing test.
Invalid domain is:
[['closed', '!=', True]]
The full field domain is:
[['closed', '!=', True], ['company', '=', 2], ['OR', ['type.expense', '=', True], ['type.debt', '=', True]]]
And the invalid record has the following properties:
>>> invalid_record.closed False >>> invalid_record.type.expense True invalid_record.company Pool().get('company.company')(3)
What is the
I think the problem comes from multiple error clauses. The error message only talks about first domain clause but the problem is about another clause.
In the scenario described in msg67543 the DomainValidationMessage is raised complaning about a closed account, but the problem is that the account is not for the right company.
I will expect that the servier will produce the right invalid_domain, so the clients can show a proper error message to users.
|2021-07-14 09:41:04||ced||set||messages: + msg68913|
status: need-eg -> chatting
nosy: + ced
status: unread -> need-eg
|2021-06-29 14:17:28||pokoli||set||messages: + msg68487|
Showing 10 items. Show all history (warning: this could be VERY long)