From 291237172f9ff27339a2afe9094b4defcae32025 Mon Sep 17 00:00:00 2001 From: mreficent Date: Tue, 15 Oct 2019 19:14:56 +0200 Subject: [PATCH] [MIG] base_kanban_stage_state: Migration to 12.0 --- base_kanban_stage_state/README.rst | 17 +++++------------ base_kanban_stage_state/__init__.py | 2 -- base_kanban_stage_state/__manifest__.py | 5 ++--- base_kanban_stage_state/models/__init__.py | 2 -- .../models/base_kanban_stage.py | 3 +-- base_kanban_stage_state/readme/CONTRIBUTORS.rst | 1 + base_kanban_stage_state/readme/DESCRIPTION.rst | 9 +++++++++ base_kanban_stage_state/tests/__init__.py | 2 -- .../tests/test_base_kanban_stage.py | 3 +-- 9 files changed, 19 insertions(+), 25 deletions(-) create mode 100644 base_kanban_stage_state/readme/CONTRIBUTORS.rst create mode 100644 base_kanban_stage_state/readme/DESCRIPTION.rst diff --git a/base_kanban_stage_state/README.rst b/base_kanban_stage_state/README.rst index f7ac20ac0..353290eda 100644 --- a/base_kanban_stage_state/README.rst +++ b/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 `_. +* Odoo Community Association: `Icon `_. Contributors ------------ diff --git a/base_kanban_stage_state/__init__.py b/base_kanban_stage_state/__init__.py index 11458e838..7d768b54b 100644 --- a/base_kanban_stage_state/__init__.py +++ b/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 diff --git a/base_kanban_stage_state/__manifest__.py b/base_kanban_stage_state/__manifest__.py index 14fa310fa..4da124e56 100644 --- a/base_kanban_stage_state/__manifest__.py +++ b/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, diff --git a/base_kanban_stage_state/models/__init__.py b/base_kanban_stage_state/models/__init__.py index d8a9ea612..1a55aaed4 100644 --- a/base_kanban_stage_state/models/__init__.py +++ b/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 diff --git a/base_kanban_stage_state/models/base_kanban_stage.py b/base_kanban_stage_state/models/base_kanban_stage.py index aedc9f153..d2256bbeb 100644 --- a/base_kanban_stage_state/models/base_kanban_stage.py +++ b/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') diff --git a/base_kanban_stage_state/readme/CONTRIBUTORS.rst b/base_kanban_stage_state/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..10029e120 --- /dev/null +++ b/base_kanban_stage_state/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Kelly Lougheed diff --git a/base_kanban_stage_state/readme/DESCRIPTION.rst b/base_kanban_stage_state/readme/DESCRIPTION.rst new file mode 100644 index 000000000..3b06ea96d --- /dev/null +++ b/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) diff --git a/base_kanban_stage_state/tests/__init__.py b/base_kanban_stage_state/tests/__init__.py index ad0cc73dc..2c3124493 100644 --- a/base_kanban_stage_state/tests/__init__.py +++ b/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 diff --git a/base_kanban_stage_state/tests/test_base_kanban_stage.py b/base_kanban_stage_state/tests/test_base_kanban_stage.py index 3cdcc4bb3..857a09fcd 100644 --- a/base_kanban_stage_state/tests/test_base_kanban_stage.py +++ b/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(),