Search 1.9 billion lines of Odoo code on GitHub

muk_web_searchpanel

Author: MuK IT
License: LGPL-3
Branch: 13.0
Repository: joyinfo/muk_web
Dependencies: muk_web_utils
Languages: HTML (120, 9.1%), JavaScript (626, 47.4%), Python (145, 11.0%), SVG (1, 0.1%), Sass (182, 13.8%), XML (136, 10.3%), and reStructuredText (110, 8.3%)
Other branches: 12.0
Other repositories: AITIC/muk_web, AmongOthers/muk_web, BlueConnectBR/muk_web, ChinaShrimp/muk_web, DITIntl/muk_web, ERPLibre/muk_web, Ingeos/muk_web, Intesco2-0/muk_web, Jeisonpernia/muk_web, JohnLYH/muk_web, JorgeJuarezM/muk_web, MathAndrews/muk_web, Muhamed-Git/muk_web, OCA-MUK/muk_web, Posland/muk_web, SDIsl/muk_web, SanteLibre/muk_web, SeuMarco/muk_web, ShaheenHossain/muk_web, ajinvn2019/muk_web, asoral/muk_web, aurestic/muk_web, binovo/muk_web, bitodoo/muk_web, boky1993/muk_web, brain-tec/muk_web, celm1990/muk_web, crnd-inc/muk_web, diggy128/muk_web, dndoanh/muk_web, drmedrme/muk_web, dunxiangyu/muk_web, eillel/muk_web, eqilibruim-solutions/muk_web, francislouie/muk_web, govorushagreat/muk_web, goyier/muk_web, gstrainovic/odoo-12-docker-compose-qms-dms-ssl, iTecan/muk_web, ideaspositivas-group/muk_web, imarin/muk_web, infoedgarpc1/muk_web, ip-candres/muk_web, ivbo/muk_web, jacky82669513/muk_web, jason156/muk_web, ke641633/muk_web, kopeyev/muk_web, leangjia/muk_web, liweijie0812/muk_web, lpajaresv/muk_web, m9rio/muk_web, markrobinson85/muk_web, maxellini/muk_web, mcjulian1107/muk_web, mekid/docker, mimmon/muk_web, mmalewski/muk_web, muk-it/muk_web, myceliandre/muk_web, niulinlnc/muk_web, odoo-modules/muk_web, odoofans/muk_web, omdatech/muk_web, ondrong/muk_web, onurugur/muk_web, pasgou/muk_web, ravishekharco/muk_web, redblow/muk_web, royalline1/muk_web, sbejaoui/muk_web, serCliff/muk_web, shiram/muk_web, sufyanel/muk_web, sunflowerit/muk_web, trobz/muk_web, trung8358573/muk_web, tuanace/muk_web, unitek-solusi/muk_web, vkuldeep/muk_web, and zlrj/muk_web

<h1 class="title">MuK Search Panel</h1> <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> <a name="installation"></a> <h2>Installation</h2> <p>To install this module, you need to:</p> <p>Download the module and add it to your Odoo addons folder. Afterward, log on to your Odoo server and go to the Apps menu. Trigger the debug mode and update the list by clicking on the &quot;Update Apps List&quot; link. Now install the module by clicking on the install button.</p> <p>Another way to install this module is via the package management for Python (<a class="reference external" href="https://pypi.org/project/pip/">PyPI</a>).</p> <p>To install our modules using the package manager make sure <a class="reference external" href="https://pypi.org/project/odoo-autodiscover/">odoo-autodiscover</a> is installed correctly. Then open a console and install the module by entering the following command:</p> <p><code>pip install --extra-index-url https://nexus.mukit.at/repository/odoo/simple &lt;module&gt;</code></p> <p>The module name consists of the Odoo version and the module name, where underscores are replaced by a dash.</p> <p><strong>Module:</strong></p> <p><code>odoo&lt;version&gt;-addon-&lt;module_name&gt;</code></p> <p><strong>Example:</strong></p> <p><code>sudo -H pip3 install --extra-index-url https://nexus.mukit.at/repository/odoo/simple odoo11-addon-muk-utils</code></p> <p>Once the installation has been successfully completed, the app is already in the correct folder. Log on to your Odoo server and go to the Apps menu. Trigger the debug mode and update the list by clicking on the &quot;Update Apps List&quot; link. Now install the module by clicking on the install button.</p> <p>The biggest advantage of this variant is that you can now also update the app using the &quot;pip&quot; command. To do this, enter the following command in your console:</p> <p><code>pip install --upgrade --extra-index-url https://nexus.mukit.at/repository/odoo/simple &lt;module&gt;</code></p> <p>When the process is finished, restart your server and update the application in Odoo. The steps are the same as for the installation only the button has changed from &quot;Install&quot; to &quot;Upgrade&quot;.</p> <p>You can also view available Apps directly in our <a class="reference external" href="https://nexus.mukit.at/#browse/browse:odoo">repository</a> and find a more detailed installation guide on our <a class="reference external" href="https://mukit.at/page/open-source">website</a>.</p> <p>For modules licensed under OPL-1, you will receive access data when you purchase the module. If the modules were not purchased directly from <a class="reference external" href="https://www.mukit.at/">MuK IT</a> please contact our support (<a class="reference external" href="mailto:support&#64;mukit.at">support&#64;mukit.at</a>) with a confirmation of purchase to receive the corresponding access data.</p> <a name="upgrade"></a> <h2>Upgrade</h2> <p>To upgrade this module, you need to:</p> <p>Download the module and add it to your Odoo addons folder. Restart the server and log on to your Odoo server. Select the Apps menu and upgrade the module by clicking on the upgrade button.</p> <p>If you installed the module using the &quot;pip&quot; command, you can also update the module in the same way. Just type the following command into the console:</p> <p><code>pip install --upgrade --extra-index-url https://nexus.mukit.at/repository/odoo/simple &lt;module&gt;</code></p> <p>When the process is finished, restart your server and update the application in Odoo, just like you would normally.</p> <a name="configuration"></a> <h2>Configuration</h2> <p>No additional configuration is needed to use this module.</p> <a name="usage"></a> <h2>Usage</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="credits"></a> <h2>Credits</h2> <a name="contributors"></a> <h3>Contributors</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> </ul> <a name="images"></a> <h3>Images</h3> <p>Some pictures are based on or inspired by the icon set of Font Awesome:</p> <ul class="simple"> <li><a class="reference external" href="https://fontawesome.com">Font Awesome</a></li> </ul> <a name="projects"></a> <h3>Projects</h3> <p>Parts of the module are based on or inspired by:</p> <ul class="simple"> <li><a class="reference external" href="https://github.com/odoo/odoo">Odoo</a></li> </ul> <a name="author-maintainer"></a> <h3>Author &amp; Maintainer</h3> <p>This module is maintained by the <a class="reference external" href="https://www.mukit.at/">MuK IT GmbH</a>.</p> <p>MuK IT is an Austrian company specialized in customizing and extending Odoo. We develop custom solutions for your individual needs to help you focus on your strength and expertise to grow your business.</p> <p>If you want to get in touch please contact us via mail (<a class="reference external" href="mailto:sale&#64;mukit.at">sale&#64;mukit.at</a>) or visit our website (<a class="reference external" href="https://mukit.at">https://mukit.at</a>).</p>