Sunday, September 22, 2024
1 change · saas-17.2
Miscellaneous changes
[FIX] base: Manage list operators for name search Description of the issue/feature this PR addresses: - Searching contact with country state not working if we check in a list. - Not possible to define a domain with "in" for state_id field of res.partner Steps: - Setup a record rule for res.partner - With domain "[('state_id', 'in', ['A', 'B', 'C'])]" - Save Actual result: - Invalid domain: expected string or bytes-like object Expected result: - Domain is saved - List values h
Original PR description
[FIX] base: Manage list operators for name search
Description of the issue/feature this PR addresses:
- Searching contact with country state not working if we check in a list.
- Not possible to define a domain with "in" for state_id field of res.partner
Steps:
- Setup a record rule for res.partner
- With domain "[('state_id', 'in', ['A', 'B', 'C'])]"
- Save
Actual result:
- Invalid domain: expected string or bytes-like object
Expected result:
- Domain is saved
- List values handle "display_name" searching too
opw-3830039
odoo/odoo@aacd64a1
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#167798
Forward-Port-Of: odoo/odoo#159424