Search 1.9 billion lines of Odoo code on GitHub

web_view_searchpanel

Author: MuK IT, Odoo Community Association (OCA)
License: LGPL-3
Branch: 12.0
Repository: aaltinisik/web
Dependencies: web
Languages: HTML (372, 24.3%), JavaScript (616, 40.2%), Python (159, 10.4%), Sass (152, 9.9%), XML (152, 9.9%), and reStructuredText (83, 5.4%)
Other repositories: AITIC/web, AntoniRomera/web, AyoubZahid/web, BADEP/web, Change2improve/web, Darknroses/web, Digital5-Odoo/web, Dobtor-OCA/web, ELMARDI0107/web, ERPLibre/web, ForgeFlow/web, GSLabIt/web, Gabinete-Digital/web, GlodoUK/oca-web, Ingeos/web, Jarsa/web, KENLYLST/web, KKamaa/web, LevelPrime/web, Martronic-SA/web, MaxyMoos/web, MindAndGo/web, NL66278/web, OCA-MUK/web, OCA/web, SimoRubi/web, SirumTME/web, Studio73/web, Tecnativa/web, VanMoof/web, Vauxoo/web, WilldooIT/web, acsone/web, akloptim/web, alan80080/web, androettop/web, anhvu-sg/web, arkyalpyae/web, asphaltzipper/web, aurestic/web, blooparksystems/web, brain-tec/web, bud-e/web, camptocamp/web, coopiteasy/web, diggy128/web, dingguijin/web, druidoo-dev/web, dvalladares66/web, eLBati/web, ecosoft-odoo/web, enmasys/web, fallewi/web, fjouatte/web, focusate/web-oca, gab-net/web, gfcapalbo/web, grindtildeath/web, hbrunn/web, i-vyshnevska/web, ideaspositivas-group/web, initOS/web, jans23/web, janverb/web, jeroen7s/web, khanvuthy88/web, kkasing11/web, kmee/web, kos94ok-3D/web, leanhtuan1996/web, legalsylvain/web, lideritjnma/web, lubw/web, mashanz/web, mhadi12/web, mharenz/web, mochammadrizanaufal/web, modoolar/oca-web, mohamedhagag/web, multidadosti-erp/web, noorealam96/web, onurugur/web, onyanga/web, petrus-v/web, popsolutions/web, robertsvx27/web, samsagaz/web, sergiocorato/web, solvosci/web, steingabelgaard/web, sunflowerit/web, syci/web, takinobori/oca-web, tegin/web, tirix/web, tirma-sa/web, tpa-odoo/web, trevi-software/web, trionoharjadi/web, trobz/web, tvtma/web, ursais/web, vertelab/web, vialaurea/OCA-web, xcgd/web, zarumaru/web, and zcyuefan/web

<h1 class="title">Search Panel</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/web/tree/12.0/web_view_searchpanel"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_view_searchpanel"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/162/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>With Odoo version 13 a new feature is added which allows kanban views to be extended by a search panel. This can be defined via XML and is then automatically added to the view. With this module the function is ported back to version 12.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#usage" id="id1">Usage</a></li> <li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id3">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id4">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li> </ul> </li> </ul> </div> <a name="usage"></a> <h2><a class="toc-backref" href="#id1">Usage</a></h2> <p>This tool allows to quickly filter data on the basis of given fields. The fields are specified as direct children of the <code>searchpanel</code> with tag name <code>field</code>, and the following attributes:</p> <ul class="simple"> <li><code>name</code> (mandatory) the name of the field to filter on</li> <li><code>select</code> determines the behavior and display.</li> <li><code>groups</code>: restricts to specific users</li> <li><code>string</code>: determines the label to display</li> <li><code>icon</code>: specifies which icon is used</li> <li><code>color</code>: determines the icon color</li> </ul> <p>Possible values for the <code>select</code> attribute are</p> <ul class="simple"> <li><code>one</code> (default) at most one value can be selected. Supported field types are many2one and selection.</li> <li><code>multi</code> several values can be selected (checkboxes). Supported field types are many2one, many2many and selection.</li> </ul> <p>Additional optional attributes are available in the <code>multi</code> case:</p> <ul class="simple"> <li><code>domain</code>: determines conditions that the comodel records have to satisfy.</li> </ul> <p>A domain might be used to express a dependency on another field (with select=&quot;one&quot;) of the search panel. Consider</p> <pre> <code lang="xml">&lt;searchpanel&gt; &lt;field name=&quot;department_id&quot;/&gt; &lt;field name=&quot;manager_id&quot; select=&quot;multi&quot; domain=&quot;[('department_id', '=', department_id)]&quot;/&gt; &lt;/searchpanel&gt;</code> </pre> <p>In the above example, the range of values for manager_id (manager names) available at screen will depend on the value currently selected for the field <code>department_id</code>.</p> <ul class="simple"> <li><code>groupby</code>: field name of the comodel (only available for many2one and many2many fields). Values will be grouped by that field.</li> <li><code>disable_counters</code>: default is false. If set to true the counters won't be computed.</li> </ul> <p>This feature has been implemented in case performances would be too bad.</p> <p>Another way to solve performance issues is to properly override the <code>search_panel_select_multi_range</code> method.</p> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id2">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/web/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/web/issues/new?body=module:%20web_view_searchpanel%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id3">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id4">Authors</a></h3> <ul class="simple"> <li>MuK IT</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id5">Contributors</a></h3> <ul class="simple"> <li>Mathias Markl &lt;<a class="reference external" href="mailto:mathias.markl&#64;mukit.at">mathias.markl&#64;mukit.at</a>&gt;</li> <li>Enric Tobella &lt;<a class="reference external" href="mailto:etobella&#64;creublanca.es">etobella&#64;creublanca.es</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id6">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/12.0/web_view_searchpanel">OCA/web</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>