Skip to content

Commit

Permalink
[MIG] mgmsystem_nonconformity_hr: Migration to 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mymage committed Apr 5, 2020
1 parent d9b1b92 commit 5b40d06
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 39 deletions.
12 changes: 6 additions & 6 deletions mgmtsystem_nonconformity_hr/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down Expand Up @@ -61,7 +61,7 @@ NC Department
Changelog
=========

11.0.1.0.0 (2019-04-01)
13.0.1.0.0 (2020-04-01)
~~~~~~~~~~~~~~~~~~~~~~~

* [INI] Initial development
Expand All @@ -72,7 +72,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/management-system/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 <https://github.com/OCA/management-system/issues/new?body=module:%20mgmtsystem_nonconformity_hr%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/management-system/issues/new?body=module:%20mgmtsystem_nonconformity_hr%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand Down Expand Up @@ -103,6 +103,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 <https://github.com/OCA/management-system/tree/11.0/mgmtsystem_nonconformity_hr>`_ project on GitHub.
This module is part of the `OCA/management-system <https://github.com/OCA/management-system/tree/13.0/mgmtsystem_nonconformity_hr>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 1 addition & 4 deletions mgmtsystem_nonconformity_hr/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

from . import (
models,
)
from . import models
30 changes: 11 additions & 19 deletions mgmtsystem_nonconformity_hr/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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://gitlab.com/PNLUG/Odoo",
"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,
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ 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")
2 changes: 1 addition & 1 deletion mgmtsystem_nonconformity_hr/readme/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
11.0.1.0.0 (2019-04-01)
13.0.1.0.0 (2020-04-01)
~~~~~~~~~~~~~~~~~~~~~~~

* [INI] Initial development
10 changes: 5 additions & 5 deletions mgmtsystem_nonconformity_hr/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Management System - Nonconformity HR</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/management-system/tree/11.0/mgmtsystem_nonconformity_hr"><img alt="OCA/management-system" src="https://img.shields.io/badge/github-OCA%2Fmanagement--system-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/management-system-11-0/management-system-11-0-mgmtsystem_nonconformity_hr"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/128/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/management-system/tree/13.0/mgmtsystem_nonconformity_hr"><img alt="OCA/management-system" src="https://img.shields.io/badge/github-OCA%2Fmanagement--system-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/management-system-13-0/management-system-13-0-mgmtsystem_nonconformity_hr"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/128/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This is a bridge module between Management System and Human Resource</p>
<p>This module contains some new features for Management System modules.</p>
<p>Nonconformity (NC)</p>
Expand All @@ -381,7 +381,7 @@ <h1 class="title">Management System - Nonconformity HR</h1>
<li><a class="reference internal" href="#configuration" id="id3">Configuration</a></li>
<li><a class="reference internal" href="#usage" id="id4">Usage</a></li>
<li><a class="reference internal" href="#changelog" id="id5">Changelog</a><ul>
<li><a class="reference internal" href="#id1" id="id6">11.0.1.0.0 (2019-04-01)</a></li>
<li><a class="reference internal" href="#id1" id="id6">13.0.1.0.0 (2020-04-01)</a></li>
</ul>
</li>
<li><a class="reference internal" href="#bug-tracker" id="id7">Bug Tracker</a></li>
Expand Down Expand Up @@ -414,7 +414,7 @@ <h1><a class="toc-backref" href="#id4">Usage</a></h1>
<div class="section" id="changelog">
<h1><a class="toc-backref" href="#id5">Changelog</a></h1>
<div class="section" id="id1">
<h2><a class="toc-backref" href="#id6">11.0.1.0.0 (2019-04-01)</a></h2>
<h2><a class="toc-backref" href="#id6">13.0.1.0.0 (2020-04-01)</a></h2>
<ul class="simple">
<li>[INI] Initial development</li>
</ul>
Expand All @@ -425,7 +425,7 @@ <h1><a class="toc-backref" href="#id7">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/management-system/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/management-system/issues/new?body=module:%20mgmtsystem_nonconformity_hr%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/management-system/issues/new?body=module:%20mgmtsystem_nonconformity_hr%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -450,7 +450,7 @@ <h2><a class="toc-backref" href="#id11">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/management-system/tree/11.0/mgmtsystem_nonconformity_hr">OCA/management-system</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/management-system/tree/13.0/mgmtsystem_nonconformity_hr">OCA/management-system</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<!-- Copyright 2019 Marcelo Frare (Associazione PNLUG - Gruppo Odoo <http://odoo.pnlug.it>)
Copyright 2019 Stefano Consolaro (Associazione PNLUG - Gruppo Odoo <http://odoo.pnlug.it>)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) -->

<odoo>

<!-- inherit NC form view
<!-- inherit NC form view
adding department -->
<record id="view_mgmtsystem_nonconformity_form" model="ir.ui.view">
<field name="name">view.mgmtsystem.nonconformity.department</field>
Expand Down

0 comments on commit 5b40d06

Please sign in to comment.