Search 1.9 billion lines of Odoo code on GitHub

web_kanban_stage

Author: LasLabs, Odoo Community Association (OCA)
License: LGPL-3
Branch: feature/9.0/LABS-134-create-medical_base_stage-object
Repository: LasLabs/web
Dependencies: web_kanban
Languages: Python (279, 70.5%), and XML (117, 29.5%)

<a class="reference external image-reference" 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.svg"> </a> <a name="kanban-stage-support"></a> <h2>Kanban - Stage Support</h2> <p>This module provides a stage model compatible with Kanban views and the standard views needed to manage these stages. It also provides the <code>web.kanban.abstract</code> model, which can be inherited to add support for Kanban views with stages to any other model. Lastly, it includes a base Kanban view that can be extended as needed.</p> <a name="installation"></a> <h3>Installation</h3> <p>To install this module, simply follow the standard install process.</p> <a name="configuration"></a> <h3>Configuration</h3> <p>No configuration is needed or possible.</p> <a name="usage"></a> <h3>Usage</h3> <ul> <li><p class="first">Inherit from <code>web.kanban.abstract</code> to add Kanban stage functionality to the child model:</p> <pre> <code lang="python">class MyModel(models.Model): _name = 'my.model' _inherit = 'web.kanban.abstract'</code> </pre> </li> <li><p class="first">Extend the provided base Kanban view (<code>web_kanban_abstract_view_kanban</code>) as needed by the child model. The base view has four <code>name</code> attributes intended to provide convenient XPath access to different parts of the Kanban card. They are <code>card_dropdown_menu</code>, <code>card_header</code>, <code>card_body</code>, and <code>card_footer</code>:</p> <pre> <code lang="xml">&lt;record id=&quot;my_model_view_kanban&quot; model=&quot;ir.ui.view&quot;&gt; &lt;field name=&quot;name&quot;&gt;My Model - Kanban View&lt;/field&gt; &lt;field name=&quot;model&quot;&gt;my.model&lt;/field&gt; &lt;field name=&quot;inherit_id&quot; ref=&quot;web_kanban_stage.web_kanban_abstract_view_kanban&quot;/&gt; &lt;field name=&quot;arch&quot; type=&quot;xml&quot;&gt; &lt;xpath expr=&quot;//div[&#64;name='card_header']&quot;&gt; &lt;!-- Add header content here --&gt; &lt;/xpath&gt; &lt;xpath expr=&quot;//div[&#64;name='card_body']&quot;&gt; &lt;!-- Add body content here --&gt; &lt;/xpath&gt; &lt;/field&gt; &lt;/record&gt;</code> </pre> </li> <li><p class="first">To manage stages, go to Settings &gt; Technical &gt; Kanban &gt; Stages.</p> </li> </ul> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/162/9.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> <a name="known-issues-roadmap"></a> <h3>Known Issues / Roadmap</h3> <ul class="simple"> <li>The grouping logic used by <code>web.kanban.abstract</code> currently does not support additional domains and alternate sort orders</li> </ul> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <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 smash it by providing detailed and welcomed feedback.</p> <a name="credits"></a> <h3>Credits</h3> <a name="images"></a> <h4>Images</h4> <ul class="simple"> <li>Odoo Community Association: <a class="reference external" href="https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg">Icon</a>.</li> </ul> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Dave Lasley &lt;<a class="reference external" href="mailto:dave&#64;laslabs.com">dave&#64;laslabs.com</a>&gt;</li> <li>Oleg Bulkin &lt;<a class="reference external" href="mailto:obulkin&#64;laslabs.com">obulkin&#64;laslabs.com</a>&gt;</li> <li>Daniel Reis</li> </ul> <a name="maintainer"></a> <h4>Maintainer</h4> <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>This module is maintained by the OCA.</p> <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>To contribute to this module, please visit <a class="reference external" href="http://odoo-community.org">http://odoo-community.org</a>.</p>