Monday, January 7, 2019
1 change · master
Resolved issues and error corrections
This fixes a broken option that lets users search through available fields when building domain filters. The search input is now correctly passed through and enabled for mass mailing, making it easier to configure mailing audiences.
Original PR description
PR #27788 introduced the possibility to add a `showSearchInput` property to domain widgets, which should allow users to fuzzy search on the fields list.
This feature was buggy and was not properly working when the field was declared with such option:
```xml
<field name="domain_field" widget="domain" options="{'showSearchInput': true, 'model': 'model_field'}"/>
```
This commit fixes that problem, and BTW it enables the feature in `mass_mailing`, which is one of the modules where this feature is most useful.
Another question that I still cannot understand is: **Why default to false?** But I didn't want to change that in this PR for now.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
@Tecnativa @mge-odoo @qsm-odoo