Search 1.9 billion lines of Odoo code on GitHub

domain_field_selectable

Author: Eezee-It
License: no license
Branch: rva/epl-1767
Repository: eezee-it/noviat-apps
Dependencies: web
Languages: JavaScript (44, 57.9%), Markdown (8, 10.5%), Python (16, 21.1%), and XML (8, 10.5%)

<h1>Domain Field Selectable</h1> <p>On Odoo 11.0 we can&#39;t select record on a char field with the widget &quot;domain&quot;, with this module if you added the option &quot;&#39;selectable&#39;: 1&quot; to the widget, you can select records to add to the filter.</p> <h2>Exemple of use</h2> <p><code>xml &lt;field name=&quot;mailing_domain&quot; widget=&quot;domain&quot; attrs=&quot;{&#39;invisible&#39;: [(&#39;mailing_model_name&#39;, &#39;=&#39;, &#39;mail.mass_mailing.list&#39;)]}&quot; options=&quot;{&#39;model&#39;: &#39;mailing_model_real&#39;, &#39;selectable&#39;:1}&quot; context=&quot;{&#39;search_default_not_opt_out&#39;:1}&quot;/&gt; </code></p> <h2>Improvement</h2> <ul> <li>On Odoo 10.0 and before if you make a search on the domain pop-up, the &quot;domain&quot; field received this domain, whith this module each ids of search is added to the domain.</li> </ul>