From 5ac6307d3ba79f5e4da31db54599a5f9abe17384 Mon Sep 17 00:00:00 2001 From: Stefano Consolaro Date: Sat, 19 Oct 2019 18:01:11 +0200 Subject: [PATCH 1/3] [ADD] new module mgmsystem_nonconformity_hr --- mgmtsystem_nonconformity_hr/README.rst | 108 +++++ mgmtsystem_nonconformity_hr/__init__.py | 4 + mgmtsystem_nonconformity_hr/__manifest__.py | 26 + mgmtsystem_nonconformity_hr/i18n/it.po | 28 ++ .../i18n/mgmtsystem_extended_hr.pot | 27 ++ .../models/__init__.py | 2 + .../models/mgmtsystem_nonconformity_hr.py | 17 + .../readme/CONFIGURE.rst | 1 + .../readme/CONTRIBUTORS.rst | 2 + .../readme/DESCRIPTION.rst | 7 + .../readme/HISTORY.rst | 4 + .../readme/INSTALL.rst | 1 + .../readme/ROADMAP.rst | 0 mgmtsystem_nonconformity_hr/readme/USAGE.rst | 6 + .../static/description/icon.png | Bin 0 -> 4755 bytes .../static/description/index.html | 459 ++++++++++++++++++ .../views/mgmtsystem_nonconformity_views.xml | 22 + 17 files changed, 714 insertions(+) create mode 100644 mgmtsystem_nonconformity_hr/README.rst create mode 100644 mgmtsystem_nonconformity_hr/__init__.py create mode 100644 mgmtsystem_nonconformity_hr/__manifest__.py create mode 100644 mgmtsystem_nonconformity_hr/i18n/it.po create mode 100644 mgmtsystem_nonconformity_hr/i18n/mgmtsystem_extended_hr.pot create mode 100644 mgmtsystem_nonconformity_hr/models/__init__.py create mode 100644 mgmtsystem_nonconformity_hr/models/mgmtsystem_nonconformity_hr.py create mode 100644 mgmtsystem_nonconformity_hr/readme/CONFIGURE.rst create mode 100644 mgmtsystem_nonconformity_hr/readme/CONTRIBUTORS.rst create mode 100644 mgmtsystem_nonconformity_hr/readme/DESCRIPTION.rst create mode 100644 mgmtsystem_nonconformity_hr/readme/HISTORY.rst create mode 100644 mgmtsystem_nonconformity_hr/readme/INSTALL.rst create mode 100644 mgmtsystem_nonconformity_hr/readme/ROADMAP.rst create mode 100644 mgmtsystem_nonconformity_hr/readme/USAGE.rst create mode 100644 mgmtsystem_nonconformity_hr/static/description/icon.png create mode 100644 mgmtsystem_nonconformity_hr/static/description/index.html create mode 100644 mgmtsystem_nonconformity_hr/views/mgmtsystem_nonconformity_views.xml diff --git a/mgmtsystem_nonconformity_hr/README.rst b/mgmtsystem_nonconformity_hr/README.rst new file mode 100644 index 000000000000..888189df398c --- /dev/null +++ b/mgmtsystem_nonconformity_hr/README.rst @@ -0,0 +1,108 @@ +==================================== +Management System - Nonconformity HR +==================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :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 + :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 + :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 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This is a bridge module between Management System and Human Resource + +This module contains some new features for Management System modules. + +Nonconformity (NC) + +- Department: add a field to link a specific department. + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +This module will be automatically installed + +Configuration +============= + +This module doesn't need configuration + +Usage +===== + +NC Department + +* Go to Employees → Department → create a new one +* Go to Management System → Nonconformity +* Create new Nonconformity +* Select a Departament on the list + +Changelog +========= + +11.0.1.0.0 (2019-04-01) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [INI] Initial development + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Associazione PNLUG - Gruppo Odoo + +Contributors +~~~~~~~~~~~~ + +* Marcelo Frare +* Stefano Consolaro + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +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 new file mode 100644 index 000000000000..0792fc131fda --- /dev/null +++ b/mgmtsystem_nonconformity_hr/__init__.py @@ -0,0 +1,4 @@ + +from . import ( + models, +) diff --git a/mgmtsystem_nonconformity_hr/__manifest__.py b/mgmtsystem_nonconformity_hr/__manifest__.py new file mode 100644 index 000000000000..3a89bcff748b --- /dev/null +++ b/mgmtsystem_nonconformity_hr/__manifest__.py @@ -0,0 +1,26 @@ +# Copyright 2019 Marcelo Frare (Ass. PNLUG - Gruppo Odoo ) +# Copyright 2019 Stefano Consolaro (Ass. PNLUG - Gruppo Odoo ) +# 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", + + "category": "Management System", + "depends": [ + 'hr', + 'mgmtsystem_nonconformity', + ], + "data": [ + 'views/mgmtsystem_nonconformity_views.xml', + ], + 'application': False, + 'installable': True, + 'auto_install': True, +} diff --git a/mgmtsystem_nonconformity_hr/i18n/it.po b/mgmtsystem_nonconformity_hr/i18n/it.po new file mode 100644 index 000000000000..d97a55967ada --- /dev/null +++ b/mgmtsystem_nonconformity_hr/i18n/it.po @@ -0,0 +1,28 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mgmtsystem_extended_hr +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-10-20 11:55+0000\n" +"PO-Revision-Date: 2019-10-20 14:06+0200\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.2.4\n" +"Last-Translator: \n" +"Language: it\n" + +#. module: mgmtsystem_extended_hr +#: model:ir.model.fields,field_description:mgmtsystem_extended_hr.field_mgmtsystem_nonconformity_department_id +msgid "Department" +msgstr "Reparto" + +#. module: mgmtsystem_extended_hr +#: model:ir.model,name:mgmtsystem_extended_hr.model_mgmtsystem_nonconformity +msgid "Nonconformity" +msgstr "Nonconformità" diff --git a/mgmtsystem_nonconformity_hr/i18n/mgmtsystem_extended_hr.pot b/mgmtsystem_nonconformity_hr/i18n/mgmtsystem_extended_hr.pot new file mode 100644 index 000000000000..9738418bfff0 --- /dev/null +++ b/mgmtsystem_nonconformity_hr/i18n/mgmtsystem_extended_hr.pot @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mgmtsystem_extended_hr +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-10-20 11:55+0000\n" +"PO-Revision-Date: 2019-10-20 11:55+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: mgmtsystem_extended_hr +#: model:ir.model.fields,field_description:mgmtsystem_extended_hr.field_mgmtsystem_nonconformity_department_id +msgid "Department" +msgstr "" + +#. module: mgmtsystem_extended_hr +#: model:ir.model,name:mgmtsystem_extended_hr.model_mgmtsystem_nonconformity +msgid "Nonconformity" +msgstr "" + diff --git a/mgmtsystem_nonconformity_hr/models/__init__.py b/mgmtsystem_nonconformity_hr/models/__init__.py new file mode 100644 index 000000000000..cfbac6c09f8e --- /dev/null +++ b/mgmtsystem_nonconformity_hr/models/__init__.py @@ -0,0 +1,2 @@ + +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 new file mode 100644 index 000000000000..318ced6df745 --- /dev/null +++ b/mgmtsystem_nonconformity_hr/models/mgmtsystem_nonconformity_hr.py @@ -0,0 +1,17 @@ +# Copyright 2019 Marcelo Frare (Ass. PNLUG - Gruppo Odoo ) +# Copyright 2019 Stefano Consolaro (Ass. PNLUG - Gruppo Odoo ) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class MgmtsystemMgmHR(models.Model): + """ + Extend nonconformity adding fields for department + """ + + _inherit = ['mgmtsystem.nonconformity'] + + # new fields + # department reference + department_id = fields.Many2one('hr.department', 'Department') diff --git a/mgmtsystem_nonconformity_hr/readme/CONFIGURE.rst b/mgmtsystem_nonconformity_hr/readme/CONFIGURE.rst new file mode 100644 index 000000000000..f2ecb94333fe --- /dev/null +++ b/mgmtsystem_nonconformity_hr/readme/CONFIGURE.rst @@ -0,0 +1 @@ +This module doesn't need configuration diff --git a/mgmtsystem_nonconformity_hr/readme/CONTRIBUTORS.rst b/mgmtsystem_nonconformity_hr/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..1434d6da1be5 --- /dev/null +++ b/mgmtsystem_nonconformity_hr/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Marcelo Frare +* Stefano Consolaro diff --git a/mgmtsystem_nonconformity_hr/readme/DESCRIPTION.rst b/mgmtsystem_nonconformity_hr/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..da0418e5ed00 --- /dev/null +++ b/mgmtsystem_nonconformity_hr/readme/DESCRIPTION.rst @@ -0,0 +1,7 @@ +This is a bridge module between Management System and Human Resource + +This module contains some new features for Management System modules. + +Nonconformity (NC) + +- Department: add a field to link a specific department. diff --git a/mgmtsystem_nonconformity_hr/readme/HISTORY.rst b/mgmtsystem_nonconformity_hr/readme/HISTORY.rst new file mode 100644 index 000000000000..d8e256b7aa99 --- /dev/null +++ b/mgmtsystem_nonconformity_hr/readme/HISTORY.rst @@ -0,0 +1,4 @@ +11.0.1.0.0 (2019-04-01) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [INI] Initial development diff --git a/mgmtsystem_nonconformity_hr/readme/INSTALL.rst b/mgmtsystem_nonconformity_hr/readme/INSTALL.rst new file mode 100644 index 000000000000..a14179bc2196 --- /dev/null +++ b/mgmtsystem_nonconformity_hr/readme/INSTALL.rst @@ -0,0 +1 @@ +This module will be automatically installed diff --git a/mgmtsystem_nonconformity_hr/readme/ROADMAP.rst b/mgmtsystem_nonconformity_hr/readme/ROADMAP.rst new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/mgmtsystem_nonconformity_hr/readme/USAGE.rst b/mgmtsystem_nonconformity_hr/readme/USAGE.rst new file mode 100644 index 000000000000..372c42bf9b11 --- /dev/null +++ b/mgmtsystem_nonconformity_hr/readme/USAGE.rst @@ -0,0 +1,6 @@ +NC Department + +* Go to Employees → Department → create a new one +* Go to Management System → Nonconformity +* Create new Nonconformity +* Select a Departament on the list diff --git a/mgmtsystem_nonconformity_hr/static/description/icon.png b/mgmtsystem_nonconformity_hr/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..606cf27e6955e34648909d15a7d8418fa5c9db4c GIT binary patch literal 4755 zcmV;E5^U{>P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D5-3STK~#8N?VSl! z6i5EYe?81F1I&ONB8Mo7c#Fi1XEcU2f6-|2vT6>E$;LD5t_K>AU|dN=!g(8KgFchA7f=e=R7x_hd->RWgH zs)66|EExLTZph3lV#^zwpiu}@P*mkBix!MZoB!L*YB|R>Kmxfvxrj2A*FA3 zx1^2eH(mM5ZMICSr9RIlL?(m34d@|i8i{tZtb$_p^TKlKYhQ%Ry&<(fzs{ILr-RH?&f?!fu zuuIa;C4s*3eG&UpsfPLhMs}7%`pC|L_j>#0J@%%$j{4dUef$)#BDR~;)6eMvCLGUa zs~d&8u#bf);GJP1g7-|jd6&JVuBX2Cfv<#tZE>+qO+%*zw(r*}cH6Zo>T8?v5ej(g zVPRoBxjSr*KZFH4tqOBWAR8}~uo-u4%iU6P=gCn%uqIwOB5SYau=$!s>hpXa4f2PV zx`jEMo(>0)bgq~^Q)GXR_K}htMub^5NLZM;7j8N>i6tU&DnD2p%IO}|>vZW3RJOVzcoHT%9paj;vEC0H_wombaaYgza>y9UN*E&=C7M062YS?zmI1aX8mmq6@E@8iSuw@C@Nqjw|?XV5u)6mSq8`pBJPB^P#yXkT%n_DZs7>G|hZA19n zZ_vR0dqq|ypjCq4IN>)O<78R;xD&; zc(c;*;8IEZud?(MX|$Yq6ZHzxrXc%8?&9jH<5{36t*TVp4__Czy^L)(`)#~b&SvDg zN066#Dq!(I-Sqt4+yeG&MKyQ4@=gv^UAYWOwh0()>`7k3Z-t*9Xq%dVB_B;)9Z0;q zxa%=?-f{(JWY=mm!?FIE^unZ!enhH{df}Rl~qo&rW{_GLx4>T3VXjVjx(W7B5~5nX6a8EfS`?Xe1e9|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zsTPR@wB*8~I&yJP6j7gFTaaV;tTs-?YYwJZOmC|MnSZ93{n^f4x~&Bnw0JvvBTxLU zC%-Ll3Y;L;hd1G&7&yFUro|svCGqajof(zPw%i~DS^>I443}Vo7+6(VBL-r1DxaL_ z_`f8TyK#EosingP&{W7$yTQk%Z2w|U$L6`bJ$&WP6|9)@2z6P9O@b^L7|e_ewSVnh zDHq57%Tt*2aBo;QW1LMz)8>XDeMA`37vGCvCI8H6c`355&PuaGfT`S8N)PW94u_Jb z+gwlD)lz@*SQulil}f#~<(YgsPzk|YX2@x+=o1+X-))?4vlxh7f*_gW!k9>3%jPtV zO)ZN<9jSzvqgQwkT;8_OE-?_h1wsD(csSF|f++m=|MCsOIwDvyu5Mpsw-|^+f*_eh zl-M@f6uuxGxrB`B9qv%c(BrTm$N|!(j0_c?h^*x;fv9{sX15o6Q>W7GYcpEo6hV;m z5h2X%UZ!uK#((*v$IneKnsgO7HTL?n(RTHw%;7XakU#eiWN_|^Z@E&-`_Ive4m2?A z(#aRF;4PKFvyTh_jkZa$W!_}Q)nXu`mk?ymwnOaa=dN*k^E?qhxeTU`>JRTPw7k34 z*|9-dlyRgD&S=Ak27dAF55N19$7*$Y@ps~~(9?mEI|{hSSXrPZAM zl^EdSQP&WEm^dUBw#}d95ozHug7EqKp)>61D>?8}b^(;v)H_We6abAGhQvg`*n!dT z>eG*ST>L#!5FxO7%YIM>cZ;gvL3uTlSJy&iy>J^8K*l?P{z}qKRY8wXf9OG~qBYMx h)^6hZ8y*9|{{SrIdN|(e7@YtB002ovPDHLkV1l5MLSp~` literal 0 HcmV?d00001 diff --git a/mgmtsystem_nonconformity_hr/static/description/index.html b/mgmtsystem_nonconformity_hr/static/description/index.html new file mode 100644 index 000000000000..c633a32b6f32 --- /dev/null +++ b/mgmtsystem_nonconformity_hr/static/description/index.html @@ -0,0 +1,459 @@ + + + + + + +Management System - Nonconformity HR + + + +
+

Management System - Nonconformity HR

+ + +

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)

+
    +
  • Department: add a field to link a specific department.
  • +
+

Table of contents

+ +
+

Installation

+

This module will be automatically installed

+
+
+

Configuration

+

This module doesn’t need configuration

+
+
+

Usage

+

NC Department

+
    +
  • Go to Employees → Department → create a new one
  • +
  • Go to Management System → Nonconformity
  • +
  • Create new Nonconformity
  • +
  • Select a Departament on the list
  • +
+
+
+

Changelog

+
+

11.0.1.0.0 (2019-04-01)

+
    +
  • [INI] Initial development
  • +
+
+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Associazione PNLUG - Gruppo Odoo
  • +
+
+
+

Contributors

+ +
+
+

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.

+

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 new file mode 100644 index 000000000000..334b2c3a7fb0 --- /dev/null +++ b/mgmtsystem_nonconformity_hr/views/mgmtsystem_nonconformity_views.xml @@ -0,0 +1,22 @@ + + + + + + + + + view.mgmtsystem.nonconformity.department + mgmtsystem.nonconformity + + + + + + + + + From d5c753f40058bdc76628b914d45d71122c9877fd Mon Sep 17 00:00:00 2001 From: oca-travis Date: Fri, 3 Apr 2020 08:34:14 +0000 Subject: [PATCH 2/3] [UPD] Update mgmtsystem_nonconformity_hr.pot --- mgmtsystem_nonconformity_hr/i18n/it.po | 12 ++++----- .../i18n/mgmtsystem_nonconformity_hr.pot | 25 +++++++++++++++++++ 2 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 mgmtsystem_nonconformity_hr/i18n/mgmtsystem_nonconformity_hr.pot diff --git a/mgmtsystem_nonconformity_hr/i18n/it.po b/mgmtsystem_nonconformity_hr/i18n/it.po index d97a55967ada..39babe9cc393 100644 --- a/mgmtsystem_nonconformity_hr/i18n/it.po +++ b/mgmtsystem_nonconformity_hr/i18n/it.po @@ -8,21 +8,21 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-10-20 11:55+0000\n" "PO-Revision-Date: 2019-10-20 14:06+0200\n" +"Last-Translator: \n" "Language-Team: \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 2.2.4\n" -"Last-Translator: \n" -"Language: it\n" -#. module: mgmtsystem_extended_hr -#: model:ir.model.fields,field_description:mgmtsystem_extended_hr.field_mgmtsystem_nonconformity_department_id +#. module: mgmtsystem_nonconformity_hr +#: model:ir.model.fields,field_description:mgmtsystem_nonconformity_hr.field_mgmtsystem_nonconformity_department_id msgid "Department" msgstr "Reparto" -#. module: mgmtsystem_extended_hr -#: model:ir.model,name:mgmtsystem_extended_hr.model_mgmtsystem_nonconformity +#. module: mgmtsystem_nonconformity_hr +#: model:ir.model,name:mgmtsystem_nonconformity_hr.model_mgmtsystem_nonconformity msgid "Nonconformity" msgstr "Nonconformità" diff --git a/mgmtsystem_nonconformity_hr/i18n/mgmtsystem_nonconformity_hr.pot b/mgmtsystem_nonconformity_hr/i18n/mgmtsystem_nonconformity_hr.pot new file mode 100644 index 000000000000..4fd9ad18dd02 --- /dev/null +++ b/mgmtsystem_nonconformity_hr/i18n/mgmtsystem_nonconformity_hr.pot @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mgmtsystem_nonconformity_hr +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: mgmtsystem_nonconformity_hr +#: model:ir.model.fields,field_description:mgmtsystem_nonconformity_hr.field_mgmtsystem_nonconformity_department_id +msgid "Department" +msgstr "" + +#. module: mgmtsystem_nonconformity_hr +#: model:ir.model,name:mgmtsystem_nonconformity_hr.model_mgmtsystem_nonconformity +msgid "Nonconformity" +msgstr "" + From 9112389fb120c8e97e190bc079956a1d1ecabc4b Mon Sep 17 00:00:00 2001 From: Stefano Consolaro Date: Sun, 5 Apr 2020 17:53:27 +0200 Subject: [PATCH 3/3] [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