From 741f08709f0d47dfcc7dda972e39fc4e60d9e08d Mon Sep 17 00:00:00 2001 From: Stefano Consolaro Date: Sun, 5 Apr 2020 17:53:27 +0200 Subject: [PATCH] [MIG] mgmsystem_nonconformity_hr: Migration to 13.0 --- mgmtsystem_nonconformity_hr/README.rst | 22 +++------ mgmtsystem_nonconformity_hr/__init__.py | 5 +- mgmtsystem_nonconformity_hr/__manifest__.py | 30 +++++------- .../models/__init__.py | 1 - .../models/mgmtsystem_nonconformity_hr.py | 9 +--- .../readme/CONFIGURE.rst | 1 - .../readme/HISTORY.rst | 2 +- .../readme/INSTALL.rst | 1 - .../readme/ROADMAP.rst | 0 .../static/description/index.html | 48 ++++++++----------- .../views/mgmtsystem_nonconformity_views.xml | 4 +- 11 files changed, 41 insertions(+), 82 deletions(-) delete mode 100644 mgmtsystem_nonconformity_hr/readme/CONFIGURE.rst delete mode 100644 mgmtsystem_nonconformity_hr/readme/INSTALL.rst delete mode 100644 mgmtsystem_nonconformity_hr/readme/ROADMAP.rst diff --git a/mgmtsystem_nonconformity_hr/README.rst b/mgmtsystem_nonconformity_hr/README.rst index 888189df398c..75cdd1aa5a24 100644 --- a/mgmtsystem_nonconformity_hr/README.rst +++ b/mgmtsystem_nonconformity_hr/README.rst @@ -14,13 +14,13 @@ Management System - Nonconformity HR :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanagement--system-lightgray.png?logo=github - :target: https://github.com/OCA/management-system/tree/11.0/mgmtsystem_nonconformity_hr + :target: https://github.com/OCA/management-system/tree/13.0/mgmtsystem_nonconformity_hr :alt: OCA/management-system .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/management-system-11-0/management-system-11-0-mgmtsystem_nonconformity_hr + :target: https://translation.odoo-community.org/projects/management-system-13-0/management-system-13-0-mgmtsystem_nonconformity_hr :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/128/11.0 + :target: https://runbot.odoo-community.org/runbot/128/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -38,16 +38,6 @@ Nonconformity (NC) .. contents:: :local: -Installation -============ - -This module will be automatically installed - -Configuration -============= - -This module doesn't need configuration - Usage ===== @@ -61,7 +51,7 @@ NC Department Changelog ========= -11.0.1.0.0 (2019-04-01) +13.0.1.0.0 (2020-04-01) ~~~~~~~~~~~~~~~~~~~~~~~ * [INI] Initial development @@ -72,7 +62,7 @@ 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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -103,6 +93,6 @@ 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. -This module is part of the `OCA/management-system `_ project on GitHub. +This module is part of the `OCA/management-system `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mgmtsystem_nonconformity_hr/__init__.py b/mgmtsystem_nonconformity_hr/__init__.py index 0792fc131fda..0650744f6bc6 100644 --- a/mgmtsystem_nonconformity_hr/__init__.py +++ b/mgmtsystem_nonconformity_hr/__init__.py @@ -1,4 +1 @@ - -from . import ( - models, -) +from . import models diff --git a/mgmtsystem_nonconformity_hr/__manifest__.py b/mgmtsystem_nonconformity_hr/__manifest__.py index 3a89bcff748b..6a5d604fbe33 100644 --- a/mgmtsystem_nonconformity_hr/__manifest__.py +++ b/mgmtsystem_nonconformity_hr/__manifest__.py @@ -3,24 +3,16 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { - "name": "Management System - Nonconformity HR", - "summary": "Bridge module between hr and mgmsystem and", - "version": "11.0.1.0.0", - - "author": "Associazione PNLUG - Gruppo Odoo, Odoo Community Association (OCA)", - "website": "https://gitlab.com/PNLUG/Odoo/management-system-improvements/tree/" - "11.0/mgmtsystem_extended", - "license": "AGPL-3", - + "name": "Management System - Nonconformity HR", + "summary": "Bridge module between hr and mgmsystem and", + "version": "13.0.1.0.0", + "author": "Associazione PNLUG - Gruppo Odoo, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/management-system", + "license": "AGPL-3", "category": "Management System", - "depends": [ - 'hr', - 'mgmtsystem_nonconformity', - ], - "data": [ - 'views/mgmtsystem_nonconformity_views.xml', - ], - 'application': False, - 'installable': True, - 'auto_install': True, + "depends": ["hr", "mgmtsystem_nonconformity"], + "data": ["views/mgmtsystem_nonconformity_views.xml"], + "application": False, + "installable": True, + "auto_install": True, } diff --git a/mgmtsystem_nonconformity_hr/models/__init__.py b/mgmtsystem_nonconformity_hr/models/__init__.py index cfbac6c09f8e..321ab30b4e59 100644 --- a/mgmtsystem_nonconformity_hr/models/__init__.py +++ b/mgmtsystem_nonconformity_hr/models/__init__.py @@ -1,2 +1 @@ - from . import mgmtsystem_nonconformity_hr diff --git a/mgmtsystem_nonconformity_hr/models/mgmtsystem_nonconformity_hr.py b/mgmtsystem_nonconformity_hr/models/mgmtsystem_nonconformity_hr.py index 318ced6df745..441dfecaacab 100644 --- a/mgmtsystem_nonconformity_hr/models/mgmtsystem_nonconformity_hr.py +++ b/mgmtsystem_nonconformity_hr/models/mgmtsystem_nonconformity_hr.py @@ -6,12 +6,7 @@ class MgmtsystemMgmHR(models.Model): - """ - Extend nonconformity adding fields for department - """ - _inherit = ['mgmtsystem.nonconformity'] + _inherit = ["mgmtsystem.nonconformity"] - # new fields - # department reference - department_id = fields.Many2one('hr.department', 'Department') + department_id = fields.Many2one("hr.department", "Department") diff --git a/mgmtsystem_nonconformity_hr/readme/CONFIGURE.rst b/mgmtsystem_nonconformity_hr/readme/CONFIGURE.rst deleted file mode 100644 index f2ecb94333fe..000000000000 --- a/mgmtsystem_nonconformity_hr/readme/CONFIGURE.rst +++ /dev/null @@ -1 +0,0 @@ -This module doesn't need configuration diff --git a/mgmtsystem_nonconformity_hr/readme/HISTORY.rst b/mgmtsystem_nonconformity_hr/readme/HISTORY.rst index d8e256b7aa99..4d8e6c1ad15a 100644 --- a/mgmtsystem_nonconformity_hr/readme/HISTORY.rst +++ b/mgmtsystem_nonconformity_hr/readme/HISTORY.rst @@ -1,4 +1,4 @@ -11.0.1.0.0 (2019-04-01) +13.0.1.0.0 (2020-04-01) ~~~~~~~~~~~~~~~~~~~~~~~ * [INI] Initial development diff --git a/mgmtsystem_nonconformity_hr/readme/INSTALL.rst b/mgmtsystem_nonconformity_hr/readme/INSTALL.rst deleted file mode 100644 index a14179bc2196..000000000000 --- a/mgmtsystem_nonconformity_hr/readme/INSTALL.rst +++ /dev/null @@ -1 +0,0 @@ -This module will be automatically installed diff --git a/mgmtsystem_nonconformity_hr/readme/ROADMAP.rst b/mgmtsystem_nonconformity_hr/readme/ROADMAP.rst deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/mgmtsystem_nonconformity_hr/static/description/index.html b/mgmtsystem_nonconformity_hr/static/description/index.html index c633a32b6f32..8795c73ee5a4 100644 --- a/mgmtsystem_nonconformity_hr/static/description/index.html +++ b/mgmtsystem_nonconformity_hr/static/description/index.html @@ -367,7 +367,7 @@

Management System - Nonconformity HR

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/management-system Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/management-system Translate me on Weblate Try me on Runbot

This is a bridge module between Management System and Human Resource

This module contains some new features for Management System modules.

Nonconformity (NC)

@@ -377,32 +377,22 @@

Management System - Nonconformity HR

Table of contents

-
-

Installation

-

This module will be automatically installed

-
-
-

Configuration

-

This module doesn’t need configuration

-
-

Usage

+

Usage

NC Department

  • Go to Employees → Department → create a new one
  • @@ -412,45 +402,45 @@

    Usage

-

Bug Tracker

+

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 smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Associazione PNLUG - Gruppo Odoo
-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

-

This module is part of the OCA/management-system project on GitHub.

+

This module is part of the OCA/management-system project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/mgmtsystem_nonconformity_hr/views/mgmtsystem_nonconformity_views.xml b/mgmtsystem_nonconformity_hr/views/mgmtsystem_nonconformity_views.xml index 334b2c3a7fb0..d240a5cc67b0 100644 --- a/mgmtsystem_nonconformity_hr/views/mgmtsystem_nonconformity_views.xml +++ b/mgmtsystem_nonconformity_hr/views/mgmtsystem_nonconformity_views.xml @@ -3,11 +3,9 @@ - + - view.mgmtsystem.nonconformity.department mgmtsystem.nonconformity