diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst new file mode 100644 index 00000000000..6043866ed94 --- /dev/null +++ b/hr_contract_reference/README.rst @@ -0,0 +1,105 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +===================== +HR Contract Reference +===================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:dccba71ae4b648f5f9fa5ba390a6d20ea0d734f9b0954df3bfb30b5525754493 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-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%2Fhr-lightgray.png?logo=github + :target: https://github.com/OCA/hr/tree/19.0/hr_contract_reference + :alt: OCA/hr +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/hr-19-0/hr-19-0-hr_contract_reference + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=19.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module was written to extend the functionality of employees +contracts to support sequence of contract reference which will be +generated automatically from the sequence predefined. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +If you want to modify the format of the sequence, go to Settings -> +Technical -> Sequences & Identifiers -> Sequences and search for the +"Contract Reference" sequence, where you modify its prefix and numbering +formats. + +Usage +===== + +When you will create a new employee contract, the field reference will +be assigned automatically with the next number of the predefined +sequence. + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Michael Telahun Makonnen +* Fekete Mihai (Forest and Biomass Services Romania) + +Contributors +------------ + +- Michael Telahun Makonnen +- Fekete Mihai +- Denis Leemann +- Serpent Consulting Services Pvt. Ltd. +- Nikul Chaudhary +- `Heliconia Solutions Pvt. Ltd. `__ + + - Bhavesh Heliconia + +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/hr `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_contract_reference/__init__.py b/hr_contract_reference/__init__.py new file mode 100644 index 00000000000..83e553ac462 --- /dev/null +++ b/hr_contract_reference/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/hr_contract_reference/__manifest__.py b/hr_contract_reference/__manifest__.py new file mode 100644 index 00000000000..a5fb48904a4 --- /dev/null +++ b/hr_contract_reference/__manifest__.py @@ -0,0 +1,15 @@ +# copyright 2011,2013 Michael Telahun Makonnen +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "HR Contract Reference", + "version": "19.0.1.0.0", + "category": "Generic Modules/Human Resources", + "author": "Michael Telahun Makonnen, " + "Fekete Mihai (Forest and Biomass Services Romania), " + "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/hr", + "license": "AGPL-3", + "depends": ["hr"], + "data": ["data/hr_contract_sequence.xml"], + "installable": True, +} diff --git a/hr_contract_reference/data/hr_contract_sequence.xml b/hr_contract_reference/data/hr_contract_sequence.xml new file mode 100644 index 00000000000..c2c2ceab37c --- /dev/null +++ b/hr_contract_reference/data/hr_contract_sequence.xml @@ -0,0 +1,9 @@ + + + + Contract Reference + contract.ref + EC/%(year)s/ + 5 + + diff --git a/hr_contract_reference/i18n/ar.po b/hr_contract_reference/i18n/ar.po new file mode 100644 index 00000000000..b535792613d --- /dev/null +++ b/hr_contract_reference/i18n/ar.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +# abdullah alsabi , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-10 04:30+0000\n" +"PO-Revision-Date: 2017-06-10 04:30+0000\n" +"Last-Translator: abdullah alsabi , 2017\n" +"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" +"Language: ar\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " +"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "" + +#, fuzzy +#~ msgid "Employee Contract" +#~ msgstr "العقد" diff --git a/hr_contract_reference/i18n/cs_CZ.po b/hr_contract_reference/i18n/cs_CZ.po new file mode 100644 index 00000000000..4b1181d20b5 --- /dev/null +++ b/hr_contract_reference/i18n/cs_CZ.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +# Lukáš Spurný , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-23 03:45+0000\n" +"PO-Revision-Date: 2018-02-23 03:45+0000\n" +"Last-Translator: Lukáš Spurný , 2018\n" +"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/" +"teams/23907/cs_CZ/)\n" +"Language: cs_CZ\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "" + +#~ msgid "Employee Contract" +#~ msgstr "Smlouva o zaměstnance" diff --git a/hr_contract_reference/i18n/de.po b/hr_contract_reference/i18n/de.po new file mode 100644 index 00000000000..6be42837984 --- /dev/null +++ b/hr_contract_reference/i18n/de.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: hr (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-18 13:10+0000\n" +"PO-Revision-Date: 2021-07-09 14:48+0000\n" +"Last-Translator: Maria Sparenberg \n" +"Language-Team: German (http://www.transifex.com/oca/OCA-hr-8-0/language/" +"de/)\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "Vertragsreferenz" + +#~ msgid "Employee Contract" +#~ msgstr "Arbeitsvertrag" diff --git a/hr_contract_reference/i18n/es.po b/hr_contract_reference/i18n/es.po new file mode 100644 index 00000000000..d6898491c39 --- /dev/null +++ b/hr_contract_reference/i18n/es.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: hr (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-30 05:19+0000\n" +"PO-Revision-Date: 2015-07-27 23:43+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-hr-8-0/language/" +"es/)\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "" + +#, fuzzy +#~ msgid "Employee Contract" +#~ msgstr "Contrato" diff --git a/hr_contract_reference/i18n/fi.po b/hr_contract_reference/i18n/fi.po new file mode 100644 index 00000000000..3a598f0ac19 --- /dev/null +++ b/hr_contract_reference/i18n/fi.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: hr (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-14 04:15+0000\n" +"PO-Revision-Date: 2016-04-04 11:09+0000\n" +"Last-Translator: Jarmo Kortetjärvi \n" +"Language-Team: Finnish (http://www.transifex.com/oca/OCA-hr-8-0/language/" +"fi/)\n" +"Language: fi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "" + +#, fuzzy +#~ msgid "Employee Contract" +#~ msgstr "Sopimus" diff --git a/hr_contract_reference/i18n/fr.po b/hr_contract_reference/i18n/fr.po new file mode 100644 index 00000000000..c48135e1767 --- /dev/null +++ b/hr_contract_reference/i18n/fr.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +# Alexandre Fayolle , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-23 03:45+0000\n" +"PO-Revision-Date: 2018-02-23 03:45+0000\n" +"Last-Translator: Alexandre Fayolle , 2018\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "" + +#~ msgid "Employee Contract" +#~ msgstr "Contrat" diff --git a/hr_contract_reference/i18n/hi_IN.po b/hr_contract_reference/i18n/hi_IN.po new file mode 100644 index 00000000000..718cc1ddee9 --- /dev/null +++ b/hr_contract_reference/i18n/hi_IN.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +# BS Logics , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-29 02:20+0000\n" +"PO-Revision-Date: 2017-07-29 02:20+0000\n" +"Last-Translator: BS Logics , 2017\n" +"Language-Team: Hindi (India) (https://www.transifex.com/oca/teams/23907/" +"hi_IN/)\n" +"Language: hi_IN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "" + +#, fuzzy +#~ msgid "Employee Contract" +#~ msgstr "संपर्क " diff --git a/hr_contract_reference/i18n/hr.po b/hr_contract_reference/i18n/hr.po new file mode 100644 index 00000000000..923291cbfee --- /dev/null +++ b/hr_contract_reference/i18n/hr.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +# Bole , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-23 03:45+0000\n" +"PO-Revision-Date: 2018-02-23 03:45+0000\n" +"Last-Translator: Bole , 2018\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "" + +#~ msgid "Employee Contract" +#~ msgstr "Ugovor zaposlenika" diff --git a/hr_contract_reference/i18n/hr_contract_reference.pot b/hr_contract_reference/i18n/hr_contract_reference.pot new file mode 100644 index 00000000000..b7890fc2751 --- /dev/null +++ b/hr_contract_reference/i18n/hr_contract_reference.pot @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.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: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "" diff --git a/hr_contract_reference/i18n/it.po b/hr_contract_reference/i18n/it.po new file mode 100644 index 00000000000..7abea60b345 --- /dev/null +++ b/hr_contract_reference/i18n/it.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +# Marco Calcagni , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-31 03:38+0000\n" +"PO-Revision-Date: 2025-07-28 07:24+0000\n" +"Last-Translator: mymage \n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.10.4\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "Contratto" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "Riferimento contratto" + +#~ msgid "Employee Contract" +#~ msgstr "Contratto dei dipendenti" diff --git a/hr_contract_reference/i18n/lt.po b/hr_contract_reference/i18n/lt.po new file mode 100644 index 00000000000..71d4fabd29f --- /dev/null +++ b/hr_contract_reference/i18n/lt.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +# Viktoras Norkus , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-17 12:15+0000\n" +"PO-Revision-Date: 2018-01-17 12:15+0000\n" +"Last-Translator: Viktoras Norkus , 2018\n" +"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" +"Language: lt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"(n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "" + +#~ msgid "Employee Contract" +#~ msgstr "Darbuotojo kontraktas" diff --git a/hr_contract_reference/i18n/nl_NL.po b/hr_contract_reference/i18n/nl_NL.po new file mode 100644 index 00000000000..cb50b20b075 --- /dev/null +++ b/hr_contract_reference/i18n/nl_NL.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +# Cas Vissers , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-28 03:17+0000\n" +"PO-Revision-Date: 2017-03-28 03:17+0000\n" +"Last-Translator: Cas Vissers , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "" + +#, fuzzy +#~ msgid "Employee Contract" +#~ msgstr "Contract" diff --git a/hr_contract_reference/i18n/pt_BR.po b/hr_contract_reference/i18n/pt_BR.po new file mode 100644 index 00000000000..bc607ad3788 --- /dev/null +++ b/hr_contract_reference/i18n/pt_BR.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: hr (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-20 18:46+0000\n" +"PO-Revision-Date: 2022-09-26 16:07+0000\n" +"Last-Translator: Douglas Custódio \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-hr-8-0/" +"language/pt_BR/)\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "Referência do contrato" + +#~ msgid "Employee Contract" +#~ msgstr "Contrato do Empregado" + +#~ msgid "Display Name" +#~ msgstr "Nome de Exibição" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Última Modificação em" diff --git a/hr_contract_reference/i18n/ro.po b/hr_contract_reference/i18n/ro.po new file mode 100644 index 00000000000..8071f638cbe --- /dev/null +++ b/hr_contract_reference/i18n/ro.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: hr (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-18 13:10+0000\n" +"PO-Revision-Date: 2015-07-27 23:43+0000\n" +"Last-Translator: <>\n" +"Language-Team: Romanian (http://www.transifex.com/oca/OCA-hr-8-0/language/" +"ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "" + +#, fuzzy +#~ msgid "Employee Contract" +#~ msgstr "Contract" diff --git a/hr_contract_reference/i18n/sl.po b/hr_contract_reference/i18n/sl.po new file mode 100644 index 00000000000..921a52905ea --- /dev/null +++ b/hr_contract_reference/i18n/sl.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_contract_reference +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: hr (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-18 13:10+0000\n" +"PO-Revision-Date: 2015-08-01 15:45+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-hr-8-0/language/" +"sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || " +"n%100==4 ? 2 : 3);\n" + +#. module: hr_contract_reference +#: model:ir.model,name:hr_contract_reference.model_hr_contract +msgid "Contract" +msgstr "" + +#. module: hr_contract_reference +#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name +msgid "Contract Reference" +msgstr "" + +#, fuzzy +#~ msgid "Employee Contract" +#~ msgstr "Pogodba" diff --git a/hr_contract_reference/models/__init__.py b/hr_contract_reference/models/__init__.py new file mode 100644 index 00000000000..403d63716cb --- /dev/null +++ b/hr_contract_reference/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import hr_contract diff --git a/hr_contract_reference/models/hr_contract.py b/hr_contract_reference/models/hr_contract.py new file mode 100644 index 00000000000..98b36f80b52 --- /dev/null +++ b/hr_contract_reference/models/hr_contract.py @@ -0,0 +1,19 @@ +# copyright 2011,2013 Michael Telahun Makonnen +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import api, fields, models + + +class HrVersion(models.Model): + _inherit = "hr.version" + + name = fields.Char( + "Contract Reference", required=False, readonly=True, copy=False, default="/" + ) + + @api.model_create_multi + def create(self, vals_list): + for vals in vals_list: + if vals.get("name", "/") == "/": + vals["name"] = self.env["ir.sequence"].next_by_code("contract.ref") + return super().create(vals_list) diff --git a/hr_contract_reference/pyproject.toml b/hr_contract_reference/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/hr_contract_reference/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/hr_contract_reference/readme/CONFIGURE.md b/hr_contract_reference/readme/CONFIGURE.md new file mode 100644 index 00000000000..5904a8a28d8 --- /dev/null +++ b/hr_contract_reference/readme/CONFIGURE.md @@ -0,0 +1,4 @@ +If you want to modify the format of the sequence, go to Settings -\> +Technical -\> Sequences & Identifiers -\> Sequences and search for the +"Contract Reference" sequence, where you modify its prefix and numbering +formats. diff --git a/hr_contract_reference/readme/CONTRIBUTORS.md b/hr_contract_reference/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..9e42248fcd5 --- /dev/null +++ b/hr_contract_reference/readme/CONTRIBUTORS.md @@ -0,0 +1,7 @@ +- Michael Telahun Makonnen \<\> +- Fekete Mihai \<\> +- Denis Leemann \<\> +- Serpent Consulting Services Pvt. Ltd. \<\> +- Nikul Chaudhary \<\> +- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io) + - Bhavesh Heliconia diff --git a/hr_contract_reference/readme/DESCRIPTION.md b/hr_contract_reference/readme/DESCRIPTION.md new file mode 100644 index 00000000000..9c1952838cb --- /dev/null +++ b/hr_contract_reference/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This module was written to extend the functionality of employees +contracts to support sequence of contract reference which will be +generated automatically from the sequence predefined. diff --git a/hr_contract_reference/readme/USAGE.md b/hr_contract_reference/readme/USAGE.md new file mode 100644 index 00000000000..8a28e51a19d --- /dev/null +++ b/hr_contract_reference/readme/USAGE.md @@ -0,0 +1,3 @@ +When you will create a new employee contract, the field reference will +be assigned automatically with the next number of the predefined +sequence. diff --git a/hr_contract_reference/static/description/icon.png b/hr_contract_reference/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/hr_contract_reference/static/description/icon.png differ diff --git a/hr_contract_reference/static/description/index.html b/hr_contract_reference/static/description/index.html new file mode 100644 index 00000000000..178b4aaf9d4 --- /dev/null +++ b/hr_contract_reference/static/description/index.html @@ -0,0 +1,455 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

HR Contract Reference

+ +

Beta License: AGPL-3 OCA/hr Translate me on Weblate Try me on Runboat

+

This module was written to extend the functionality of employees +contracts to support sequence of contract reference which will be +generated automatically from the sequence predefined.

+

Table of contents

+ +
+

Configuration

+

If you want to modify the format of the sequence, go to Settings -> +Technical -> Sequences & Identifiers -> Sequences and search for the +“Contract Reference” sequence, where you modify its prefix and numbering +formats.

+
+
+

Usage

+

When you will create a new employee contract, the field reference will +be assigned automatically with the next number of the predefined +sequence.

+
+
+

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

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Michael Telahun Makonnen
  • +
  • Fekete Mihai (Forest and Biomass Services Romania)
  • +
+
+
+

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/hr project on GitHub.

+

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

+
+
+
+
+ + diff --git a/hr_contract_reference/tests/__init__.py b/hr_contract_reference/tests/__init__.py new file mode 100644 index 00000000000..38a60d76ae2 --- /dev/null +++ b/hr_contract_reference/tests/__init__.py @@ -0,0 +1 @@ +from . import test_contract_reference diff --git a/hr_contract_reference/tests/test_contract_reference.py b/hr_contract_reference/tests/test_contract_reference.py new file mode 100644 index 00000000000..d91a97dfc07 --- /dev/null +++ b/hr_contract_reference/tests/test_contract_reference.py @@ -0,0 +1,15 @@ +# Copyright 2020 Creu Blanca +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.tests.common import TransactionCase + + +class TestContractReference(TransactionCase): + def setUp(self): + super().setUp() + self.employee = self.env["hr.employee"].create({"name": "Emp"}) + + def test_contract_reference(self): + contract = self.employee.version_id + contract.write({"wage": 1000}) + self.assertNotEqual(contract.name, "/")