You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
3.4 KiB

  1. .. image:: https://img.shields.io/badge/license-LGPL--3-blue.png
  2. :target: https://www.gnu.org/licenses/lgpl
  3. :alt: License: LGPL-3
  4. ======================
  5. Kanban - Stage Support
  6. ======================
  7. This module provides a stage model compatible with Kanban views and the
  8. standard views needed to manage these stages. It also provides the
  9. ``base.kanban.abstract`` model, which can be inherited to add support for
  10. Kanban views with stages to any other model. Lastly, it includes a base Kanban
  11. view that can be extended as needed.
  12. Installation
  13. ============
  14. To install this module, simply follow the standard install process.
  15. Configuration
  16. =============
  17. No configuration is needed or possible.
  18. Usage
  19. =====
  20. * Inherit from ``base.kanban.abstract`` to add Kanban stage functionality to
  21. the child model:
  22. .. code-block:: python
  23. class MyModel(models.Model):
  24. _name = 'my.model'
  25. _inherit = 'base.kanban.abstract'
  26. * Extend the provided base Kanban view (``base_kanban_abstract_view_kanban``)
  27. as needed by the child model while making sure to set the ``mode`` to
  28. ``primary`` so that inheritance works properly. The base view has four
  29. ``name`` attributes intended to provide convenient XPath access to different
  30. parts of the Kanban card. They are ``card_dropdown_menu``, ``card_header``,
  31. ``card_body``, and ``card_footer``:
  32. .. code-block:: xml
  33. <record id="my_model_view_kanban" model="ir.ui.view">
  34. <field name="name">My Model - Kanban View</field>
  35. <field name="model">my.model</field>
  36. <field name="mode">primary</field>
  37. <field name="inherit_id" ref="base_kanban_stage.base_kanban_abstract_view_kanban"/>
  38. <field name="arch" type="xml">
  39. <xpath expr="//div[@name='card_header']">
  40. <!-- Add header content here -->
  41. </xpath>
  42. <xpath expr="//div[@name='card_body']">
  43. <!-- Add body content here -->
  44. </xpath>
  45. </field>
  46. </record>
  47. * To manage stages, go to Settings > Technical > Kanban > Stages.
  48. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  49. :alt: Try me on Runbot
  50. :target: https://runbot.odoo-community.org/runbot/162/12.0
  51. Known Issues / Roadmap
  52. ======================
  53. * The grouping logic used by ``base.kanban.abstract`` currently does not
  54. support additional domains and alternate sort orders
  55. Bug Tracker
  56. ===========
  57. Bugs are tracked on `GitHub Issue
  58. <https://github.com/OCA/server-tools/issues>`_. In case of trouble, please
  59. check there if your issue has already been reported. If you spotted it first,
  60. help us smash it by providing detailed and welcomed feedback.
  61. Credits
  62. =======
  63. Images
  64. ------
  65. * Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.
  66. Contributors
  67. ------------
  68. * Dave Lasley <dave@laslabs.com>
  69. * Oleg Bulkin <obulkin@laslabs.com>
  70. * Daniel Reis <dreis.pt@hotmail.com>
  71. * Alex Comba <alex.comba@agilebg.com>
  72. * Miquel Raïch <miquel.raich@eficent.com>
  73. Maintainer
  74. ----------
  75. .. image:: https://odoo-community.org/logo.png
  76. :alt: Odoo Community Association
  77. :target: https://odoo-community.org
  78. This module is maintained by the OCA.
  79. OCA, or the Odoo Community Association, is a nonprofit organization whose
  80. mission is to support the collaborative development of Odoo features and
  81. promote its widespread use.
  82. To contribute to this module, please visit http://odoo-community.org.