From 50e3d1f7d8362ff1d0189a383c5e3a53d38d4aa8 Mon Sep 17 00:00:00 2001 From: ahenriquez Date: Tue, 17 Sep 2019 16:26:26 +0200 Subject: [PATCH] [MIG] base_kanban_stage: Migration to 12.0 --- base_kanban_stage/README.rst | 17 ++++++++--------- base_kanban_stage/__init__.py | 1 - base_kanban_stage/__manifest__.py | 3 +-- base_kanban_stage/models/__init__.py | 1 - .../models/base_kanban_abstract.py | 2 +- base_kanban_stage/models/base_kanban_stage.py | 1 - base_kanban_stage/tests/__init__.py | 1 - .../tests/test_base_kanban_abstract.py | 3 +-- .../tests/test_base_kanban_stage.py | 1 - .../views/base_kanban_abstract.xml | 12 +++++++----- 10 files changed, 18 insertions(+), 24 deletions(-) diff --git a/base_kanban_stage/README.rst b/base_kanban_stage/README.rst index 5595366ea..eaa3953f5 100644 --- a/base_kanban_stage/README.rst +++ b/base_kanban_stage/README.rst @@ -1,5 +1,5 @@ -.. image:: https://img.shields.io/badge/licence-lgpl--3-blue.svg - :target: http://www.gnu.org/licenses/LGPL-3.0-standalone.html +.. image:: https://img.shields.io/badge/license-LGPL--3-blue.png + :target: https://www.gnu.org/licenses/lgpl :alt: License: LGPL-3 ====================== @@ -62,7 +62,7 @@ Usage .. 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 + :target: https://runbot.odoo-community.org/runbot/162/12.0 Known Issues / Roadmap ====================== @@ -73,10 +73,10 @@ Known Issues / Roadmap Bug Tracker =========== -Bugs are tracked on `GitHub 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. +Bugs are tracked on `GitHub Issue +`_. 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 ======= @@ -84,8 +84,7 @@ Credits Images ------ -* Odoo Community Association: - `Icon `_. +* Odoo Community Association: `Icon `_. Contributors ------------ diff --git a/base_kanban_stage/__init__.py b/base_kanban_stage/__init__.py index 6b7b00c35..73538cca0 100644 --- a/base_kanban_stage/__init__.py +++ b/base_kanban_stage/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 LasLabs Inc. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). diff --git a/base_kanban_stage/__manifest__.py b/base_kanban_stage/__manifest__.py index 5bddc0f73..c77309db4 100644 --- a/base_kanban_stage/__manifest__.py +++ b/base_kanban_stage/__manifest__.py @@ -1,11 +1,10 @@ -# -*- 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': '10.0.1.2.1', + 'version': '12.0.1.2.1', 'author': 'LasLabs, Odoo Community Association (OCA)', 'category': 'base', 'depends': [ diff --git a/base_kanban_stage/models/__init__.py b/base_kanban_stage/models/__init__.py index abde8b5bd..4dbc4659f 100644 --- a/base_kanban_stage/models/__init__.py +++ b/base_kanban_stage/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 LasLabs Inc. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). diff --git a/base_kanban_stage/models/base_kanban_abstract.py b/base_kanban_stage/models/base_kanban_abstract.py index 4b4b35750..173a7fdb3 100644 --- a/base_kanban_stage/models/base_kanban_abstract.py +++ b/base_kanban_stage/models/base_kanban_abstract.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016-2017 LasLabs Inc. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). @@ -15,6 +14,7 @@ class BaseKanbanAbstract(models.AbstractModel): """ _name = 'base.kanban.abstract' + _description = 'Kanban Abstract' _order = 'kanban_priority desc, kanban_sequence' _group_by_full = { 'stage_id': lambda s, *a, **k: s._read_group_stage_ids(*a, **k), diff --git a/base_kanban_stage/models/base_kanban_stage.py b/base_kanban_stage/models/base_kanban_stage.py index 2ffaa63ec..c44957b62 100644 --- a/base_kanban_stage/models/base_kanban_stage.py +++ b/base_kanban_stage/models/base_kanban_stage.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 LasLabs Inc. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). diff --git a/base_kanban_stage/tests/__init__.py b/base_kanban_stage/tests/__init__.py index 05cdecf9a..d7c11e8d3 100644 --- a/base_kanban_stage/tests/__init__.py +++ b/base_kanban_stage/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 LasLabs Inc. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). diff --git a/base_kanban_stage/tests/test_base_kanban_abstract.py b/base_kanban_stage/tests/test_base_kanban_abstract.py index 59e275ae3..57677cac4 100644 --- a/base_kanban_stage/tests/test_base_kanban_abstract.py +++ b/base_kanban_stage/tests/test_base_kanban_abstract.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016-2017 LasLabs Inc. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). @@ -28,7 +27,7 @@ class TestBaseKanbanAbstract(TransactionCase): def setUp(self): super(TestBaseKanbanAbstract, self).setUp() - self.registry.enter_test_mode() + self.registry.enter_test_mode(self.cr) self.old_cursor = self.cr self.cr = self.registry.cursor() self.env = api.Environment(self.cr, self.uid, {}) diff --git a/base_kanban_stage/tests/test_base_kanban_stage.py b/base_kanban_stage/tests/test_base_kanban_stage.py index e2d3e9bfa..9184bc811 100644 --- a/base_kanban_stage/tests/test_base_kanban_stage.py +++ b/base_kanban_stage/tests/test_base_kanban_stage.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 LasLabs Inc. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). diff --git a/base_kanban_stage/views/base_kanban_abstract.xml b/base_kanban_stage/views/base_kanban_abstract.xml index 827edaf56..472d15f43 100644 --- a/base_kanban_stage/views/base_kanban_abstract.xml +++ b/base_kanban_stage/views/base_kanban_abstract.xml @@ -24,7 +24,8 @@