Browse Source

[10.0] Add base_kanban_stage_state: Map stages to states

pull/760/head
Kelly Lougheed 8 years ago
parent
commit
189c092ac1
  1. 60
      base_kanban_stage_state/README.rst
  2. 5
      base_kanban_stage_state/__init__.py
  3. 20
      base_kanban_stage_state/__manifest__.py
  4. 5
      base_kanban_stage_state/models/__init__.py
  5. 19
      base_kanban_stage_state/models/base_kanban_stage.py
  6. BIN
      base_kanban_stage_state/static/description/icon.png
  7. 79
      base_kanban_stage_state/static/description/icon.svg
  8. 18
      base_kanban_stage_state/views/base_kanban_stage_state_view.xml

60
base_kanban_stage_state/README.rst

@ -0,0 +1,60 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
=======================
Base Kanban Stage State
=======================
This module extends the functionality of base_kanban_stage to allow you to
map stages from base_kanban_stage to states.
Usage
=====
To use this module, you need to:
#. Go to ...
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/10.0
Known issues / Roadmap
======================
Bug Tracker
===========
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/sever-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
------------
* Kelly Lougheed <kelly@smdrugstore.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 https://odoo-community.org.

5
base_kanban_stage_state/__init__.py

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Specialty Medical Drugstore
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models

20
base_kanban_stage_state/__manifest__.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Specialty Medical Drugstore
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Base Kanban Stage State",
"summary": "Maps stages from base_kanban_stage to states",
"version": "10.0.1.0.0",
"category": "Base",
"website": "https://odoo-community.org/",
"author": "SMDrugstore, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"base_kanban_stage",
],
"data": [
"views/base_kanban_stage_state_view.xml",
],
}

5
base_kanban_stage_state/models/__init__.py

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Specialty Medical Drugstore
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import base_kanban_stage

19
base_kanban_stage_state/models/base_kanban_stage.py

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Specialty Medical Drugstore
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
_STATE = [
('draft', 'New'),
('open', 'In Progress'),
('pending', 'Pending'),
('done', 'Done'),
('cancelled', 'Cancelled')]
class BaseKanbanStage(models.Model):
_inherit = 'base.kanban.stage'
state = fields.Selection(_STATE, 'State')

BIN
base_kanban_stage_state/static/description/icon.png

After

Width: 128  |  Height: 128  |  Size: 9.2 KiB

79
base_kanban_stage_state/static/description/icon.svg
File diff suppressed because it is too large
View File

18
base_kanban_stage_state/views/base_kanban_stage_state_view.xml

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017 Specialty Medical Drugstore
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="base_kanban_stage_view_form" model="ir.ui.view">
<field name="name">Kanban Stage - Form View</field>
<field name="model">base.kanban.stage</field>
<field name="inherit_id" ref="base_kanban_stage.base_kanban_stage_view_form"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='core_info']" position="inside">
<field name="state"/>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save