[16.0] web_advanced_search: improper domain when only changing field
When changing the field used for filtering, the domain doesn't update automatically resulting in filtering on value = "1" instead of value = "" for char field (for example)
Module
web_advanced_search
Describe the bug
When changing only the field to filter on, the resulting domain is not always correct.
For example, for a char field, the domain is [["name","=",1]] instead of [["name","=",""]]
To Reproduce
Affected versions: 16.0
Steps to reproduce the behavior:
- Open the advanced search popup, default filter is defined on ID = 1

- Only change the field you want to filter on, by selecting a char field for example

- The form shows Name = "" (empty string) but the domain is different.
- Validate the popup and see that the filter applied is following the domain and not what the form displayed

Expected behavior Domain should update on the fly when field is changed
In above case, the popup should show

and the validation should result in this filter being applied

Additional context Windows 11, Python 3.8, Chrome
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.