Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] 11.0 mig base_kanban_stage #1958

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
bd27e94
[ADD] base_kanban_stage: Stage model and abstract logic
Dec 28, 2016
441cc05
[MIG] base_kanban_stage: Upgrade to v10
lasley Dec 30, 2016
eba1241
IMP] base_kanban_stage: Updates per PR
Jan 3, 2017
79d51cc
Implement newer abstract test strategy
lasley Jan 15, 2017
b327909
[FIX] base_kanban_stage: Add group_expand & fix method
lasley Jan 27, 2017
00c0553
[FIX] base_kanban_stage: Fix test for new API
lasley Jan 27, 2017
48ba998
OCA Transbot updated translations from Transifex
oca-transbot Feb 11, 2017
9c4131d
OCA Transbot updated translations from Transifex
oca-transbot Feb 18, 2017
e1ea3f1
OCA Transbot updated translations from Transifex
oca-transbot Feb 25, 2017
d581990
OCA Transbot updated translations from Transifex
oca-transbot Mar 4, 2017
2f3270a
Leave test mode after base kanban stage tests
florian-dacosta Mar 6, 2017
57b7e48
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2017
dbf0f74
OCA Transbot updated translations from Transifex
oca-transbot May 13, 2017
39c115f
OCA Transbot updated translations from Transifex
oca-transbot Jun 24, 2017
0293971
OCA Transbot updated translations from Transifex
oca-transbot Jul 1, 2017
beca166
[FIX] base_kanban_stage: fix wrong field referenced in base_kanban_ab…
tafaRU Aug 24, 2017
9fb8104
[FIX] base_kanban_stage: following on https://github.com/OCA/server-t…
tafaRU Sep 6, 2017
40a038e
[FIX] base_kanban_stage: ignore domain in _read_group_stage_ids overr…
tafaRU Sep 18, 2017
5f7ab34
OCA Transbot updated translations from Transifex
oca-transbot Dec 2, 2017
77477fc
OCA Transbot updated translations from Transifex
oca-transbot Dec 30, 2017
abfef63
OCA Transbot updated translations from Transifex
oca-transbot Jan 16, 2018
c1604c5
[FIX][IMP] base_kanban_stage: Default stage and tests
obulkin Dec 5, 2017
d4a3bdf
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
32dd123
[UPD] Update base_kanban_stage.pot
oca-travis Jun 24, 2018
4ea2031
[11.0][MIG]base_kanban_stage: Module migration
fshah-initos Dec 11, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
112 changes: 112 additions & 0 deletions base_kanban_stage/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
.. image:: https://img.shields.io/badge/licence-lgpl--3-blue.svg
:target: http://www.gnu.org/licenses/LGPL-3.0-standalone.html
:alt: License: LGPL-3

======================
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:

.. code-block:: python

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``:

.. code-block:: xml

<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.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/162/10.0

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 Issues <https://github.com/OCA/server-tools/issues>`_.
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 <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

Contributors
------------

* Dave Lasley <dave@laslabs.com>
* Oleg Bulkin <obulkin@laslabs.com>
* Daniel Reis <dreis.pt@hotmail.com>
* Alex Comba <alex.comba@agilebg.com>
* Foram Shah <foram.shah@initos.com>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.
5 changes: 5 additions & 0 deletions base_kanban_stage/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import models
23 changes: 23 additions & 0 deletions base_kanban_stage/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2017 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

{
'name': 'Kanban - Stage Support',
'summary': 'Provides stage model and abstract logic for inheritance',
'version': '11.0.1.0.0',
'author': 'LasLabs, Odoo Community Association (OCA)',
'category': 'base',
'depends': [
'base',
],
'website': 'https://github.com/OCA/server-tools',
'license': 'LGPL-3',
'data': [
'security/ir.model.access.csv',
'views/base_kanban_abstract.xml',
'views/base_kanban_stage.xml',
],
'installable': True,
'application': False,
}