Provides stage model and abstract logic for inheritance
Project description
Kanban - Stage Support
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.
Installation
To install this module, simply follow the standard install process.
Configuration
No configuration is needed or possible.
Usage
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="//div[@name='card_body']"> <!-- Add body content here --> </xpath> </field> </record>To manage stages, go to Settings > Technical > Kanban > Stages.
Known Issues / Roadmap
The grouping logic used by base.kanban.abstract currently does not support additional domains and alternate sort orders
Bug Tracker
Bugs are tracked on GitHub Issue. 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.
Credits
Images
Odoo Community Association: Icon.
Contributors
Dave Lasley <dave@laslabs.com>
Oleg Bulkin <obulkin@laslabs.com>
Daniel Reis <dreis.pt@hotmail.com>
Alex Comba <alex.comba@agilebg.com>
Miquel Raïch <miquel.raich@eficent.com>
Maintainer
This module is maintained by the OCA.
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.
To contribute to this module, please visit http://odoo-community.org.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo12_addon_base_kanban_stage-12.0.1.2.2-py3-none-any.whl
.
File metadata
- Download URL: odoo12_addon_base_kanban_stage-12.0.1.2.2-py3-none-any.whl
- Upload date:
- Size: 177.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/30.4.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1d4555985cc030eca1d920dd0ec40e9affa5a4a1f428b7aa717982ba3e319a3 |
|
MD5 | eaad33774083c061b24137bc809a12a6 |
|
BLAKE2b-256 | 1f3ed3d6b77edd27ff6f7669ce9b726ec4362950dd4baf0236523333792e8239 |