Skip to content

Latest commit

 

History

History

base_kanban_stage

README.rst

Odoo Community Association

Kanban - Stage Support

Beta License: LGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

This module provides a stage model compatible with Kanban views and the standard views needed to manage these stages. It also provides the base.kanban.abstract 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.

Table of contents

No configuration is needed or possible.

  • Inherit from base.kanban.abstract to add Kanban stage functionality to the child model:
class MyModel(models.Model):
    _name = "my.model"
    _inherit = "base.kanban.abstract"
  • Extend the provided base Kanban view (base_kanban_abstract_view_kanban) as needed by the child model while making sure to set the mode to primary so that inheritance works properly. The base view has four name attributes intended to provide convenient XPath access to different parts of the Kanban card. They are card_dropdown_menu, card_header, card_body and card_footer:
<record id="my_model_view_kanban" model="ir.ui.view">
    <field name="name">My Model - Kanban View</field>
    <field name="model">my.model</field>
    <field name="mode">primary</field>
    <field name="inherit_id" ref="base_kanban_stage.base_kanban_abstract_view_kanban"/>
    <field name="arch" type="xml">
        <xpath expr="//div[@name='card_header']">
            <!-- Add header content here -->
        </xpath>
        <xpath expr="//main[@name='card_body']">
            <!-- Add body content here -->
        </xpath>
    </field>
</record>
  • To manage stages, go to Settings > Technical > Kanban > Stages.
  • The grouping logic used by base.kanban.abstract currently does not support additional domains and alternate sort orders.

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

  • LasLabs

This module is maintained by the OCA.

Odoo Community Association

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.

This module is part of the OCA/server-tools project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.