Browse Source

[MIG] base_kanban_stage_state: Migration to 12.0

12.0-mig-module_prototyper_last
mreficent 5 years ago
parent
commit
291237172f
  1. 17
      base_kanban_stage_state/README.rst
  2. 2
      base_kanban_stage_state/__init__.py
  3. 5
      base_kanban_stage_state/__manifest__.py
  4. 2
      base_kanban_stage_state/models/__init__.py
  5. 3
      base_kanban_stage_state/models/base_kanban_stage.py
  6. 1
      base_kanban_stage_state/readme/CONTRIBUTORS.rst
  7. 9
      base_kanban_stage_state/readme/DESCRIPTION.rst
  8. 2
      base_kanban_stage_state/tests/__init__.py
  9. 3
      base_kanban_stage_state/tests/test_base_kanban_stage.py

17
base_kanban_stage_state/README.rst

@ -1,6 +1,6 @@
.. 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
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3
=======================
Base Kanban Stage State
@ -19,16 +19,9 @@ map stages from base_kanban_stage to states. The states are:
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
======================
:target: https://runbot.odoo-community.org/runbot/149/12.0
Bug Tracker
===========
@ -44,7 +37,7 @@ Credits
Images
------
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.
Contributors
------------

2
base_kanban_stage_state/__init__.py

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

5
base_kanban_stage_state/__manifest__.py

@ -1,12 +1,11 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Specialty Medical Drugstore
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Base Kanban Stage State",
"summary": "Maps stages from base_kanban_stage to states",
"version": "10.0.1.0.0",
"version": "12.0.1.0.0",
"category": "Base",
"website": "https://odoo-community.org/",
"website": "https://github.com/OCA/server-tools",
"author": "SMDrugstore, Odoo Community Association (OCA)",
"license": "LGPL-3",
"application": False,

2
base_kanban_stage_state/models/__init__.py

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

3
base_kanban_stage_state/models/base_kanban_stage.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Specialty Medical Drugstore
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
@ -17,4 +16,4 @@ class BaseKanbanStage(models.Model):
('cancelled', 'Cancelled'),
('exception', 'Exception')]
state = fields.Selection(_get_states, 'State')
state = fields.Selection(_get_states, string='State')

1
base_kanban_stage_state/readme/CONTRIBUTORS.rst

@ -0,0 +1 @@
* Kelly Lougheed <kelly@smdrugstore.com>

9
base_kanban_stage_state/readme/DESCRIPTION.rst

@ -0,0 +1,9 @@
This module extends the functionality of base_kanban_stage to allow you to
map stages from base_kanban_stage to states. The states are:
* New (draft)
* In Progress (open)
* Pending (pending)
* Done (done)
* Cancelled (cancelled)
* Exception (exception)

2
base_kanban_stage_state/tests/__init__.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Specialty Medical Drugstore
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from . import test_base_kanban_stage

3
base_kanban_stage_state/tests/test_base_kanban_stage.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Specialty Medical Drugstore
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
@ -7,7 +6,7 @@ from odoo.tests.common import TransactionCase
class TestBaseKanbanStage(TransactionCase):
def test_get_states(self):
'''It should return a list of stages'''
"""It should return a list of stages"""
test_stage = self.env['base.kanban.stage'].with_context({})
self.assertEqual(test_stage._get_states(),

Loading…
Cancel
Save