diff --git a/hr_employee_id/README.rst b/hr_employee_id/README.rst new file mode 100644 index 00000000000..0c0fe7916d2 --- /dev/null +++ b/hr_employee_id/README.rst @@ -0,0 +1,131 @@ +=========== +Employee ID +=========== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:d55710cd4d224f197153f76682389a48e65a2bf402ada3208520ec26e2b79db0 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fhr-lightgray.png?logo=github + :target: https://github.com/OCA/hr/tree/16.0/hr_employee_id + :alt: OCA/hr +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/hr-16-0/hr-16-0-hr_employee_id + :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=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Company wide unique employee ID. Supports: + +* Random ID Generation +* Sequence + +This module supports sequence of employee ID which will be generated +automatically from the sequence predefined. + +Nevertheless, if you need a difference ID in particular cases +you can pass a custom value for `identification_id`: if you do it +no automatic generation happens. + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +To install this module, you need to: + +* clone the branch 11.0 of the repository https://github.com/OCA/hr +* add the path to this repository in your configuration (addons-path) +* update the module list +* search for "Employee Identification Numbers" in your addons +* install the module + +Configuration +============= + +If you want to modify the format of the sequence, go to +Settings -> Technical -> Sequences & Identifiers -> Sequences +and search for the "Employee ID" sequence, where you modify +its prefix and numbering formats. + +To configure the 'ID Generation Method', the '# of Digits' and +the 'Sequence', activate the developer mode and go to +Employees -> Configuration -> Employee ID. + +Usage +===== + +When you will create a new employee, the field reference will be +assigned automatically with the next number of the predefined sequence. + +Known issues / Roadmap +====================== + +* When installing the module, the ID of existing employees is not generated automatically + +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 +~~~~~~~ + +* CorporateHub +* Michael Telahun Makonnen +* OpenSynergy Indonesia +* Camptocamp + +Contributors +~~~~~~~~~~~~ + +* Michael Telahun Makonnen +* Adrien Peiffer (ACSONE) +* Salton Massally (iDT Labs) +* Andhitia Rama (OpenSynergy Indonesia) +* Simone Orsi +* Serpent Consulting Services Pvt. Ltd. +* `CorporateHub `__ + + * Alexey Pelykh + +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_employee_id/__init__.py b/hr_employee_id/__init__.py new file mode 100644 index 00000000000..83e553ac462 --- /dev/null +++ b/hr_employee_id/__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_employee_id/__manifest__.py b/hr_employee_id/__manifest__.py new file mode 100644 index 00000000000..828ef23e56e --- /dev/null +++ b/hr_employee_id/__manifest__.py @@ -0,0 +1,24 @@ +# Copyright 2011, 2013 Michael Telahun Makonnen +# Copyright 2016 OpenSynergy Indonesia +# Copyright 2018 Brainbean Apps (https://brainbeanapps.com) +# Copyright 2020 CorporateHub (https://corporatehub.eu) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Employee ID", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "category": "Generic Modules/Human Resources", + "author": "CorporateHub, " + "Michael Telahun Makonnen, " + "OpenSynergy Indonesia, " + "Camptocamp, " + "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/hr", + "depends": ["hr"], + "data": [ + "data/hr_employee_sequence.xml", + "views/hr_employee_views.xml", + "views/res_config_settings_views.xml", + ], + "installable": True, +} diff --git a/hr_employee_id/data/hr_employee_sequence.xml b/hr_employee_id/data/hr_employee_sequence.xml new file mode 100644 index 00000000000..6732f887119 --- /dev/null +++ b/hr_employee_id/data/hr_employee_sequence.xml @@ -0,0 +1,11 @@ + + + + + Employee Identifier + hr.employee.id + + 5 + + + diff --git a/hr_employee_id/i18n/ar.po b/hr_employee_id/i18n/ar.po new file mode 100644 index 00000000000..0c0ce07a2f1 --- /dev/null +++ b/hr_employee_id/i18n/ar.po @@ -0,0 +1,150 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# Translators: +# OCA Transbot , 2016 +# 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: 2019-01-20 06:41+0000\n" +"Last-Translator: Osoul \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 ? 4 : 5;\n" +"X-Generator: Weblate 3.3\n" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "عدد الأرقام" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "الشركات" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "الموظف" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +#, fuzzy +msgid "Employee Identifier" +msgstr "رقم الموظف" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +msgid "Generation Method" +msgstr "طريقة الانشاء" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "رقم التعريف" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "تسلسل الترقيم" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "Number of digits in employee identifier" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Pattern to be used for employee identifier generation" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "عشوائي" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "متسلسل" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "" + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "" + +#~ msgid "" +#~ "(*) This configuration is related to the company you're logged into." +#~ "" +#~ msgstr "" +#~ "(*) This configuration is related to the company you're logged into." +#~ "" + +#~ msgid "Apply" +#~ msgstr "تطبيق" + +#~ msgid "Cancel" +#~ msgstr "إلغاء" + +#~ msgid "Company" +#~ msgstr "الشركة" + +#~ msgid "Configure Employee ID" +#~ msgstr "إعداد رقم المستخدم" + +#~ msgid "Created by" +#~ msgstr "انشئ من قبل" + +#~ msgid "Created on" +#~ msgstr "وقت الانشاء" + +#~ msgid "Display Name" +#~ msgstr "إسم العرض" + +#~ msgid "Employee ID *" +#~ msgstr "رقم الموظف *" + +#~ msgid "Last Updated by" +#~ msgstr "اخر تعديل من قبل" + +#~ msgid "Last Updated on" +#~ msgstr "اخر تعديل في" diff --git a/hr_employee_id/i18n/cs_CZ.po b/hr_employee_id/i18n/cs_CZ.po new file mode 100644 index 00000000000..ebdb0017765 --- /dev/null +++ b/hr_employee_id/i18n/cs_CZ.po @@ -0,0 +1,143 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# 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_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Společnosti" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Zaměstnanec" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Employee Identifier" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +msgid "Generation Method" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "Number of digits in employee identifier" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Pattern to be used for employee identifier generation" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "" + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "" + +#~ msgid "" +#~ "(*) This configuration is related to the company you're logged into." +#~ "" +#~ msgstr "" +#~ "(*) Tato konfigurace souvisí se společností, do které jste přihlášeni" + +#~ msgid "Cancel" +#~ msgstr "Zrušit" + +#~ msgid "Company" +#~ msgstr "Společnost" + +#~ msgid "Created by" +#~ msgstr "Vytvořil" + +#~ msgid "Created on" +#~ msgstr "Vytvořeno" + +#~ msgid "Display Name" +#~ msgstr "Zobrazovaný název" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Poslední změna dne" + +#~ msgid "Last Updated by" +#~ msgstr "Naposledy aktualizováno" + +#~ msgid "Last Updated on" +#~ msgstr "Poslední aktualizace dne" diff --git a/hr_employee_id/i18n/de.po b/hr_employee_id/i18n/de.po new file mode 100644 index 00000000000..e75e140152b --- /dev/null +++ b/hr_employee_id/i18n/de.po @@ -0,0 +1,139 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# Translators: +# OCA Transbot , 2017 +# Niki Waibel , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 01:43+0000\n" +"PO-Revision-Date: 2019-07-12 14:43+0000\n" +"Last-Translator: Maria Sparenberg \n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/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 3.7.1\n" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "# der Zeichen" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" +"" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Unternehmen" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "Konfigurationseinstellungen" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Mitarbeiter" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Employee Identifier" +msgstr "Mitarbeiter-ID" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +msgid "Generation Method" +msgstr "Erstellungsmethode" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "ID-Nummer" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "ID-Sequenz" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "Number of digits in employee identifier" +msgstr "Dies ist die Anzahl der Zeichen für die Mitarbeiter-ID." + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Pattern to be used for employee identifier generation" +msgstr "Dies ist das verwendete Muster zur Erstellung von Mitarbeiter-IDs." + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "Zufällig" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" +"Bitte das standardmäßig verwendete ID-Erstellungsmuster wählen und " +"konfigurieren." + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "Sequenz" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "Die Mitarbeiter-ID muss über alle Unternehmen hinweg eindeutig sein." + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "" +"Es ist nicht möglich, eine eindeutige Mitarbeiter-ID in %d Schritten zu " +"erzeugen." + +#~ msgid "Created by" +#~ msgstr "Erstellt von" + +#~ msgid "Created on" +#~ msgstr "Angelegt am" + +#~ msgid "Display Name" +#~ msgstr "Anzeigename" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Zuletzt geändert am" + +#~ msgid "Last Updated by" +#~ msgstr "Zuletzt aktualisiert durch" + +#~ msgid "Last Updated on" +#~ msgstr "Zuletzt aktualisiert am" diff --git a/hr_employee_id/i18n/es.po b/hr_employee_id/i18n/es.po new file mode 100644 index 00000000000..9aff75ba841 --- /dev/null +++ b/hr_employee_id/i18n/es.po @@ -0,0 +1,165 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# Translators: +# José Antonio Cuello , 2017 +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 01:43+0000\n" +"PO-Revision-Date: 2019-02-05 10:50+0000\n" +"Last-Translator: Marta Vázquez Rodríguez \n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/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" +"X-Generator: Weblate 3.4\n" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "# de Digitos" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" +"" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Compañías" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "Ajustes de Configuración" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Empleado" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Employee Identifier" +msgstr "Identificador de empleado" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +msgid "Generation Method" +msgstr "Método de generación" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "Número de identificación" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "Identificador de secuencia" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "Number of digits in employee identifier" +msgstr "Número de dígitos que componen el identificador de empleado" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Pattern to be used for employee identifier generation" +msgstr "Patrón a usar para la generación del identificador de empleado" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "Aleatorio" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" +"Selecciona & el método por defecto de generación del identificador de " +"empleado" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "Secuencia" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "El ID de empleado debe ser único en la(s) compañía(s)." + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "No se puede generar ID de empleado único en %d pasos." + +#~ msgid "" +#~ "(*) This configuration is related to the company you're logged into." +#~ "" +#~ msgstr "" +#~ "(*) Esta configuración es relativa a la compañía donde estas " +#~ "conectado." + +#~ msgid "Apply" +#~ msgstr "Aplicar" + +#~ msgid "Cancel" +#~ msgstr "Cancelar" + +#~ msgid "Company" +#~ msgstr "Compañía" + +#~ msgid "Configure Employee ID" +#~ msgstr "Configurar ID de empleado" + +#~ msgid "Created by" +#~ msgstr "Creado por" + +#~ msgid "Created on" +#~ msgstr "Creado el" + +#~ msgid "Display Name" +#~ msgstr "Mostrar nombre" + +#~ msgid "Employee ID *" +#~ msgstr "ID de empleado*" + +#~ msgid "Employee ID Sequence" +#~ msgstr "Secuencia del ID de empleado" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Última modificación el" + +#~ msgid "Last Updated by" +#~ msgstr "Última actualización por" + +#~ msgid "Last Updated on" +#~ msgstr "Última actualización el" + +#~ msgid "hr.employeeid.config.settings" +#~ msgstr "hr.employeeid.config.settings" diff --git a/hr_employee_id/i18n/fi.po b/hr_employee_id/i18n/fi.po new file mode 100644 index 00000000000..d2eff34474d --- /dev/null +++ b/hr_employee_id/i18n/fi.po @@ -0,0 +1,124 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-03 03:37+0000\n" +"PO-Revision-Date: 2017-03-03 03:37+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/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_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Yritykset" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Työntekijä" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Employee Identifier" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +msgid "Generation Method" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "Number of digits in employee identifier" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Pattern to be used for employee identifier generation" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "" + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "" + +#~ msgid "Created by" +#~ msgstr "Luonut" + +#~ msgid "Created on" +#~ msgstr "Luotu" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Updated by" +#~ msgstr "Viimeksi päivittänyt" + +#~ msgid "Last Updated on" +#~ msgstr "Viimeksi päivitetty" diff --git a/hr_employee_id/i18n/fr.po b/hr_employee_id/i18n/fr.po new file mode 100644 index 00000000000..50b20bbe94f --- /dev/null +++ b/hr_employee_id/i18n/fr.po @@ -0,0 +1,167 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# Translators: +# OCA Transbot , 2017 +# leemannd , 2017 +# guillaume bauer , 2017 +# Alexandre Fayolle , 2017 +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 , 2017\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_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "# de chiffres" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Entreprises" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Employé" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +#, fuzzy +msgid "Employee Identifier" +msgstr "ID de l'employé" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +#, fuzzy +msgid "Generation Method" +msgstr "Méthode de génération de l'ID" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +#, fuzzy +msgid "Number of digits in employee identifier" +msgstr "Nombre de chiffres pour fabriquer l'ID" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +#, fuzzy +msgid "Pattern to be used for employee identifier generation" +msgstr "Modèle à utiliser pour la génération de l'ID" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "Aléatoire" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "Séquence" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "Le numéro d'employé doit être unique par société(s)." + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, fuzzy, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "" +"Impossible de générer le numéro d'ID employé qui doit être unique en %d " +"étapes." + +#~ msgid "" +#~ "(*) This configuration is related to the company you're logged into." +#~ "" +#~ msgstr "" +#~ "(*) Cette configuration est liée à la société dans laquelle vous " +#~ "vous êtes connecté " + +#~ msgid "Apply" +#~ msgstr "Appliquer" + +#~ msgid "Cancel" +#~ msgstr "Annuler" + +#~ msgid "Company" +#~ msgstr "Entreprise" + +#~ msgid "Configure Employee ID" +#~ msgstr "Renseigner l'ID de l'employé" + +#~ msgid "Created by" +#~ msgstr "Créé par" + +#~ msgid "Created on" +#~ msgstr "Créé le" + +#~ msgid "Display Name" +#~ msgstr "Nom affiché" + +#~ msgid "Employee ID *" +#~ msgstr "ID de l'employé *" + +#~ msgid "Employee ID Sequence" +#~ msgstr "Séquence de l'ID de l'employé" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Dernière modification le" + +#~ msgid "Last Updated by" +#~ msgstr "Dernière modification par" + +#~ msgid "Last Updated on" +#~ msgstr "Dernière mise à jour le" + +#~ msgid "hr.employeeid.config.settings" +#~ msgstr "hr.employeeid.config.settings" diff --git a/hr_employee_id/i18n/hr.po b/hr_employee_id/i18n/hr.po new file mode 100644 index 00000000000..f141bab62b6 --- /dev/null +++ b/hr_employee_id/i18n/hr.po @@ -0,0 +1,160 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# Translators: +# Bole , 2017 +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: 2019-11-13 16:34+0000\n" +"Last-Translator: Bole \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" +"X-Generator: Weblate 3.8\n" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "# znamenaka" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Organizacije" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "Postavke" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Djelatnik" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Employee Identifier" +msgstr "Identifikator djelatnika" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +msgid "Generation Method" +msgstr "Metoda generianja ID-a" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "Identifikacijski broj" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "Sekvenca identifikatora" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "Number of digits in employee identifier" +msgstr "Broj znamekana za generiranje identifikatora" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Pattern to be used for employee identifier generation" +msgstr "Uzorak za kreiranje ID-djelatnika" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "Slučajno" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "Sekvenca" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "Šifra djelatnika mora biti jedinstvena unutar(između) poduzeća" + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "" + +#~ msgid "" +#~ "(*) This configuration is related to the company you're logged into." +#~ "" +#~ msgstr "" +#~ "(*) Ove postavke odnose se na tvrtku u koju ste trenutno " +#~ "prijavljeni." + +#~ msgid "Apply" +#~ msgstr "Primjeni" + +#~ msgid "Cancel" +#~ msgstr "Odustani" + +#~ msgid "Company" +#~ msgstr "Organizacija" + +#~ msgid "Configure Employee ID" +#~ msgstr "Postavi ID djelatnika" + +#~ msgid "Created by" +#~ msgstr "Kreirao" + +#~ msgid "Created on" +#~ msgstr "Kreirano" + +#~ msgid "Display Name" +#~ msgstr "Naziv" + +#~ msgid "Employee ID *" +#~ msgstr "ID djelatnika *" + +#~ msgid "Employee ID Sequence" +#~ msgstr "Sekvenca ID djelatnika" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Zadnje modificirano" + +#~ msgid "Last Updated by" +#~ msgstr "Zadnji ažurirao" + +#~ msgid "Last Updated on" +#~ msgstr "Zadnje ažurirano" + +#~ msgid "hr.employeeid.config.settings" +#~ msgstr "hr.employeeid.config.settings" diff --git a/hr_employee_id/i18n/hr_HR.po b/hr_employee_id/i18n/hr_HR.po new file mode 100644 index 00000000000..bae4f85750c --- /dev/null +++ b/hr_employee_id/i18n/hr_HR.po @@ -0,0 +1,161 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 01:43+0000\n" +"PO-Revision-Date: 2017-11-28 01:43+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_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_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "# znamenaka" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Poduzeća" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Djelatnik" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +#, fuzzy +msgid "Employee Identifier" +msgstr "ID djelatnika" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +#, fuzzy +msgid "Generation Method" +msgstr "Metoda generianja ID-a" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +#, fuzzy +msgid "Number of digits in employee identifier" +msgstr "Broj znamenaka za konstrukciju ID-a" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +#, fuzzy +msgid "Pattern to be used for employee identifier generation" +msgstr "Uzorak prema kojem se generira ID" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "Slučajno" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "Sljedno" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "ID broj djelatnika mora biti jedinstven za poduzeće(a)." + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "" + +#~ msgid "" +#~ "(*) This configuration is related to the company you're logged into." +#~ "" +#~ msgstr "" +#~ "(*) ove postavke su povezane sa poduzećem u koje ste trenutno " +#~ "prijavljeni." + +#~ msgid "Apply" +#~ msgstr "Primjeni" + +#~ msgid "Cancel" +#~ msgstr "Odustani" + +#~ msgid "Company" +#~ msgstr "Poduzeće" + +#~ msgid "Configure Employee ID" +#~ msgstr "Postavke ID-a djelatnika" + +#~ msgid "Created by" +#~ msgstr "Kreirao" + +#~ msgid "Created on" +#~ msgstr "Kreirano" + +#~ msgid "Display Name" +#~ msgstr "Naziv" + +#~ msgid "Employee ID *" +#~ msgstr "ID djelatnika *" + +#~ msgid "Employee ID Sequence" +#~ msgstr "Sekvenca ID-a djelatnika" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Zadnje ažurirano" + +#~ msgid "Last Updated by" +#~ msgstr "Zadnji ažurirao" + +#~ msgid "hr.employeeid.config.settings" +#~ msgstr "hr.employeeid.config.settings" diff --git a/hr_employee_id/i18n/hr_employee_id.pot b/hr_employee_id/i18n/hr_employee_id.pot new file mode 100644 index 00000000000..6fae37af2bb --- /dev/null +++ b/hr_employee_id/i18n/hr_employee_id.pot @@ -0,0 +1,104 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.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_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Employee Identifier" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +msgid "Generation Method" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "Number of digits in employee identifier" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Pattern to be used for employee identifier generation" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "" + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "" diff --git a/hr_employee_id/i18n/it.po b/hr_employee_id/i18n/it.po new file mode 100644 index 00000000000..60a6ebccd1c --- /dev/null +++ b/hr_employee_id/i18n/it.po @@ -0,0 +1,165 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# Translators: +# OCA Transbot , 2017 +# Marco Calcagni , 2017 +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: 2023-05-25 12:11+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 4.17\n" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "Numero di caratteri" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" +"" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Aziende" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "Impostazioni configurazione" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Dipendente" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Employee Identifier" +msgstr "Identificativo dipendente" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +msgid "Generation Method" +msgstr "Metodo di generazione" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "Nr. identificazione" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "Sequenza identificazione" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "Number of digits in employee identifier" +msgstr "Numero di caratteri per l'identificativo dipendente" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Pattern to be used for employee identifier generation" +msgstr "Modello da usare per la generazione dell'identificativo dipendente" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "Casuale" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" +"Seleziona & configura lo schema predefinito di generazione " +"identificativo dipendente" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "Sequenza" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "La matricola dipendente deve essere univoca per le società." + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "Impossibile generare un ID dipendente univoco dopo %d prove." + +#~ msgid "" +#~ "(*) This configuration is related to the company you're logged into." +#~ "" +#~ msgstr "" +#~ "(*) Questa configurazione è collegata alla Società a cui si è " +#~ "collegati." + +#~ msgid "Apply" +#~ msgstr "Applica" + +#~ msgid "Cancel" +#~ msgstr "Annulla" + +#~ msgid "Company" +#~ msgstr "Azienda" + +#~ msgid "Configure Employee ID" +#~ msgstr "Configura matricole dipendente" + +#~ msgid "Created by" +#~ msgstr "Creato da" + +#~ msgid "Created on" +#~ msgstr "Creato il" + +#~ msgid "Display Name" +#~ msgstr "Nome visualizzato" + +#~ msgid "Employee ID *" +#~ msgstr "Matricola Dipendente *" + +#~ msgid "Employee ID Sequence" +#~ msgstr "Sequenza matricole dipendenti" + +#~ msgid "ID" +#~ msgstr "Matricola" + +#~ msgid "Last Modified on" +#~ msgstr "Ultima modifica il " + +#~ msgid "Last Updated by" +#~ msgstr "Ultimo aggiornamento di" + +#~ msgid "Last Updated on" +#~ msgstr "Ultimo aggiornamento il" + +#~ msgid "hr.employeeid.config.settings" +#~ msgstr "hr.employeeid.config.settings" diff --git a/hr_employee_id/i18n/lt.po b/hr_employee_id/i18n/lt.po new file mode 100644 index 00000000000..a6b2e72c26f --- /dev/null +++ b/hr_employee_id/i18n/lt.po @@ -0,0 +1,138 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# 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:16+0000\n" +"PO-Revision-Date: 2018-01-17 12:16+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_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Įmonės" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Darbuotojas" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +#, fuzzy +msgid "Employee Identifier" +msgstr "Darbuotojo ID" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +msgid "Generation Method" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "Number of digits in employee identifier" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Pattern to be used for employee identifier generation" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "" + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "" + +#~ msgid "Apply" +#~ msgstr "Sutikti" + +#~ msgid "Cancel" +#~ msgstr "Atšaukti" + +#~ msgid "Company" +#~ msgstr "Įmonė" + +#~ msgid "Configure Employee ID" +#~ msgstr "Readaguoti darbuotojo ID" + +#~ msgid "Created by" +#~ msgstr "Sukūrė" + +#~ msgid "Created on" +#~ msgstr "Sukurta" + +#~ msgid "Display Name" +#~ msgstr "Pavadinimas" + +#~ msgid "Employee ID *" +#~ msgstr "Darbuotojo ID *" + +#~ msgid "ID" +#~ msgstr "ID" diff --git a/hr_employee_id/i18n/nl_NL.po b/hr_employee_id/i18n/nl_NL.po new file mode 100644 index 00000000000..d10afb53ecf --- /dev/null +++ b/hr_employee_id/i18n/nl_NL.po @@ -0,0 +1,165 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# Translators: +# Peter Hageman , 2017 +# Cas Vissers , 2017 +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 01:43+0000\n" +"PO-Revision-Date: 2017-11-28 01:43+0000\n" +"Last-Translator: OCA Transbot , 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_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "# Decimalen" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Bedrijven" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Werknemer" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +#, fuzzy +msgid "Employee Identifier" +msgstr "Personeelsnummer" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +#, fuzzy +msgid "Generation Method" +msgstr "ID-Genereermethode" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +#, fuzzy +msgid "Number of digits in employee identifier" +msgstr "Aantal cijfers voor de opmaak van de ID" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +#, fuzzy +msgid "Pattern to be used for employee identifier generation" +msgstr "Te gebruiken patroon voor het genereren van de medewerker-ID" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "Willekeurig" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "Volgorde" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "Het Personeelsnummer moet uniek zijn binnen elk bedrijf en bedrijven." + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "" + +#~ msgid "" +#~ "(*) This configuration is related to the company you're logged into." +#~ "" +#~ msgstr "" +#~ "(*) Deze configuratie is gerelateerd aan het bedrijf waarmee mee je " +#~ "ingelogd bent." + +#~ msgid "Apply" +#~ msgstr "Toepassen" + +#~ msgid "Cancel" +#~ msgstr "Annuleer" + +#~ msgid "Company" +#~ msgstr "Bedrijf" + +#~ msgid "Configure Employee ID" +#~ msgstr "Configureer Personeelsnummer" + +#~ msgid "Created by" +#~ msgstr "Aangemaakt door" + +#~ msgid "Created on" +#~ msgstr "Aangemaakt op" + +#~ msgid "Display Name" +#~ msgstr "Weergavenaam" + +#~ msgid "Employee ID *" +#~ msgstr "Personeelsnummer *" + +#~ msgid "Employee ID Sequence" +#~ msgstr "Personeelsnummervolgorde" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Laatst gewijzigd op" + +#~ msgid "Last Updated by" +#~ msgstr "Laatst bijgewerkt door" + +#~ msgid "Last Updated on" +#~ msgstr "Laatst bijgewerkt op" + +#~ msgid "hr.employeeid.config.settings" +#~ msgstr "hr.employeeid.config.settings" diff --git a/hr_employee_id/i18n/pt_BR.po b/hr_employee_id/i18n/pt_BR.po new file mode 100644 index 00000000000..795c97ec2f9 --- /dev/null +++ b/hr_employee_id/i18n/pt_BR.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-03 03:37+0000\n" +"PO-Revision-Date: 2019-11-24 20:57+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/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 3.8\n" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "# de Dígitos" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" +"" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Empresas" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "Ajustes de configuração" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Empregado" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Employee Identifier" +msgstr "Identificação do empregado" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +msgid "Generation Method" +msgstr "Método de geração" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "N° de identificação" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "Sequência de identificação" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "Number of digits in employee identifier" +msgstr "Número de dígitos no identificador do funcionário" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Pattern to be used for employee identifier generation" +msgstr "Padrão a ser usado para geração de identificador de funcionário" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "Aleatório" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "Selecione & o método padrão para gerar o ID do funcionário" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "Sequência" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "O número do funcionário deve ser exclusivo na(s) empresa(s)." + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "Não foi possível gerar o ID do funcionário exclusivo em %d etapas." + +#~ msgid "Created by" +#~ msgstr "Criado por" + +#~ msgid "Created on" +#~ msgstr "Criado em" diff --git a/hr_employee_id/i18n/ro.po b/hr_employee_id/i18n/ro.po new file mode 100644 index 00000000000..b1bb90ea73c --- /dev/null +++ b/hr_employee_id/i18n/ro.po @@ -0,0 +1,125 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-03 03:37+0000\n" +"PO-Revision-Date: 2017-03-03 03:37+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/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_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Companii" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Angajat" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Employee Identifier" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +msgid "Generation Method" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "Number of digits in employee identifier" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Pattern to be used for employee identifier generation" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "" + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "" + +#~ msgid "Created by" +#~ msgstr "Creeat de către" + +#~ msgid "Created on" +#~ msgstr "Creeat în" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Updated by" +#~ msgstr "Ultima actualizare de către" + +#~ msgid "Last Updated on" +#~ msgstr "Ultima actualizare în" diff --git a/hr_employee_id/i18n/sl.po b/hr_employee_id/i18n/sl.po new file mode 100644 index 00000000000..e02944ecae8 --- /dev/null +++ b/hr_employee_id/i18n/sl.po @@ -0,0 +1,135 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_employee_id +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 01:43+0000\n" +"PO-Revision-Date: 2017-11-28 01:43+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/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_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_random_digits +msgid "# of Digits" +msgstr "Št. znakov" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_company +msgid "Companies" +msgstr "Družbe" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model,name:hr_employee_id.model_hr_employee +msgid "Employee" +msgstr "Kader" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +#, fuzzy +msgid "Employee Identifier" +msgstr "ID kadra" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_gen_method +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_gen_method +#, fuzzy +msgid "Generation Method" +msgstr "Metoda ustvarjanja ID" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employee__identification_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.view_employee_form +msgid "Identification No" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,field_description:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,field_description:hr_employee_id.field_res_config_settings__employee_id_sequence +msgid "Identifier Sequence" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_random_digits +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_random_digits +#, fuzzy +msgid "Number of digits in employee identifier" +msgstr "Število znakov, ki sestavlja ID" + +#. module: hr_employee_id +#: model:ir.model.fields,help:hr_employee_id.field_res_company__employee_id_sequence +#: model:ir.model.fields,help:hr_employee_id.field_res_config_settings__employee_id_sequence +#, fuzzy +msgid "Pattern to be used for employee identifier generation" +msgstr "Vzorec uporabljen za ustvarjanje ID" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__random +msgid "Random" +msgstr "Naključno" + +#. module: hr_employee_id +#: model_terms:ir.ui.view,arch_db:hr_employee_id.res_config_settings_view_form +msgid "Select & configure default employee identifier generation scheme" +msgstr "" + +#. module: hr_employee_id +#: model:ir.model.fields.selection,name:hr_employee_id.selection__res_company__employee_id_gen_method__sequence +msgid "Sequence" +msgstr "Zaporedje" + +#. module: hr_employee_id +#: model:ir.model.constraint,message:hr_employee_id.constraint_hr_employee_identification_id_uniq +msgid "The Employee Number must be unique across the company(s)." +msgstr "Številka kadra mora biti unikatna v sklopu družbe (družb)." + +#. module: hr_employee_id +#: code:addons/hr_employee_id/models/hr_employee.py:0 +#, python-format +msgid "Unable to generate unique Employee ID in %d steps." +msgstr "" + +#~ msgid "Created by" +#~ msgstr "Ustvaril" + +#~ msgid "Created on" +#~ msgstr "Ustvarjeno" + +#~ msgid "Display Name" +#~ msgstr "Prikazni naziv" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Zadnjič spremenjeno" + +#~ msgid "Last Updated by" +#~ msgstr "Zadnjič posodobil" + +#~ msgid "Last Updated on" +#~ msgstr "Zadnjič posodobljeno" diff --git a/hr_employee_id/models/__init__.py b/hr_employee_id/models/__init__.py new file mode 100644 index 00000000000..f10c319ec90 --- /dev/null +++ b/hr_employee_id/models/__init__.py @@ -0,0 +1,5 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import hr_employee +from . import res_company +from . import res_config_settings diff --git a/hr_employee_id/models/hr_employee.py b/hr_employee_id/models/hr_employee.py new file mode 100644 index 00000000000..6faa5e7a347 --- /dev/null +++ b/hr_employee_id/models/hr_employee.py @@ -0,0 +1,69 @@ +# Copyright 2011, 2013 Michael Telahun Makonnen +# Copyright 2016 OpenSynergy Indonesia +# Copyright 2018 Brainbean Apps (https://brainbeanapps.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +import logging +import random +import string + +from odoo import _, api, fields, models +from odoo.exceptions import UserError + +_logger = logging.getLogger(__name__) + + +class HrEmployee(models.Model): + """Implement company wide unique identification number.""" + + _inherit = "hr.employee" + + identification_id = fields.Char(string="Identification No", copy=False) + + _sql_constraints = [ + ( + "identification_id_uniq", + "unique(identification_id)", + "The Employee Number must be unique across the company(s).", + ), + ] + + @api.model + def _generate_identification_id(self): + """Generate a random employee identification number""" + company = self.env.user.company_id + + steps = 0 + for _retry in range(50): + employee_id = False + if company.employee_id_gen_method == "sequence": + if not company.employee_id_sequence: + _logger.warning("No sequence configured for employee ID generation") + return employee_id + employee_id = company.employee_id_sequence.next_by_id() + elif company.employee_id_gen_method == "random": + employee_id_random_digits = company.employee_id_random_digits + rnd = random.SystemRandom() + employee_id = "".join( + rnd.choice(string.digits) for x in range(employee_id_random_digits) + ) + + if self.search_count([("identification_id", "=", employee_id)]): + steps += 1 + continue + + return employee_id + + raise UserError( + _("Unable to generate unique Employee ID in %d steps.") % (steps,) + ) + + @api.model + def create(self, vals_list): + records = super(HrEmployee, self).create(vals_list) + + for record in records: + if not record.identification_id: + record.identification_id = record._generate_identification_id() + + return records diff --git a/hr_employee_id/models/res_company.py b/hr_employee_id/models/res_company.py new file mode 100644 index 00000000000..48ad509551a --- /dev/null +++ b/hr_employee_id/models/res_company.py @@ -0,0 +1,27 @@ +# Copyright 2015 Salton Massally +# Copyright 2016 OpenSynergy Indonesia +# Copyright 2018 Brainbean Apps (https://brainbeanapps.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class ResCompany(models.Model): + _inherit = "res.company" + + employee_id_gen_method = fields.Selection( + selection=[ + ("random", "Random"), + ("sequence", "Sequence"), + ], + string="Generation Method", + default="random", + ) + employee_id_random_digits = fields.Integer( + string="# of Digits", default=5, help="Number of digits in employee identifier" + ) + employee_id_sequence = fields.Many2one( + comodel_name="ir.sequence", + string="Identifier Sequence", + help="Pattern to be used for employee identifier generation", + ) diff --git a/hr_employee_id/models/res_config_settings.py b/hr_employee_id/models/res_config_settings.py new file mode 100644 index 00000000000..7f5471fc388 --- /dev/null +++ b/hr_employee_id/models/res_config_settings.py @@ -0,0 +1,49 @@ +# Copyright 2015 Salton Massally +# Copyright 2016 OpenSynergy Indonesia +# Copyright 2018 Brainbean Apps (https://brainbeanapps.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = "res.config.settings" + + employee_id_gen_method = fields.Selection( + related="company_id.employee_id_gen_method", + readonly=False, + default=lambda self: self._default_id_gen_method(), + ) + employee_id_random_digits = fields.Integer( + related="company_id.employee_id_random_digits", + readonly=False, + default=lambda self: self._default_id_random_digits(), + ) + employee_id_sequence = fields.Many2one( + "ir.sequence", + related="company_id.employee_id_sequence", + readonly=False, + default=lambda self: self._default_id_sequence(), + ) + + def _default_id_gen_method(self): + gen_method = self.env.user.company_id.employee_id_gen_method + if not gen_method: + gen_method = self.env["res.company"].default_get( + ["employee_id_gen_method"] + )["employee_id_gen_method"] + return gen_method + + def _default_id_random_digits(self): + digits = self.env.user.company_id.employee_id_random_digits + if not digits: + digits = self.env["res.company"].default_get(["employee_id_random_digits"])[ + "employee_id_random_digits" + ] + return digits + + def _default_id_sequence(self): + sequence = self.env.user.company_id.employee_id_sequence + if not sequence: + sequence = self.env.ref("hr_employee_id.seq_hr_employee_id") + return sequence and sequence.id or False diff --git a/hr_employee_id/readme/CONFIGURE.rst b/hr_employee_id/readme/CONFIGURE.rst new file mode 100644 index 00000000000..3f136d691c3 --- /dev/null +++ b/hr_employee_id/readme/CONFIGURE.rst @@ -0,0 +1,8 @@ +If you want to modify the format of the sequence, go to +Settings -> Technical -> Sequences & Identifiers -> Sequences +and search for the "Employee ID" sequence, where you modify +its prefix and numbering formats. + +To configure the 'ID Generation Method', the '# of Digits' and +the 'Sequence', activate the developer mode and go to +Employees -> Configuration -> Employee ID. diff --git a/hr_employee_id/readme/CONTRIBUTORS.rst b/hr_employee_id/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..ea8aa8e0265 --- /dev/null +++ b/hr_employee_id/readme/CONTRIBUTORS.rst @@ -0,0 +1,9 @@ +* Michael Telahun Makonnen +* Adrien Peiffer (ACSONE) +* Salton Massally (iDT Labs) +* Andhitia Rama (OpenSynergy Indonesia) +* Simone Orsi +* Serpent Consulting Services Pvt. Ltd. +* `CorporateHub `__ + + * Alexey Pelykh diff --git a/hr_employee_id/readme/DESCRIPTION.rst b/hr_employee_id/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..a01f00521b6 --- /dev/null +++ b/hr_employee_id/readme/DESCRIPTION.rst @@ -0,0 +1,11 @@ +Company wide unique employee ID. Supports: + +* Random ID Generation +* Sequence + +This module supports sequence of employee ID which will be generated +automatically from the sequence predefined. + +Nevertheless, if you need a difference ID in particular cases +you can pass a custom value for `identification_id`: if you do it +no automatic generation happens. diff --git a/hr_employee_id/readme/INSTALL.rst b/hr_employee_id/readme/INSTALL.rst new file mode 100644 index 00000000000..5dd9989434e --- /dev/null +++ b/hr_employee_id/readme/INSTALL.rst @@ -0,0 +1,7 @@ +To install this module, you need to: + +* clone the branch 11.0 of the repository https://github.com/OCA/hr +* add the path to this repository in your configuration (addons-path) +* update the module list +* search for "Employee Identification Numbers" in your addons +* install the module diff --git a/hr_employee_id/readme/ROADMAP.rst b/hr_employee_id/readme/ROADMAP.rst new file mode 100644 index 00000000000..4ac14b5de13 --- /dev/null +++ b/hr_employee_id/readme/ROADMAP.rst @@ -0,0 +1 @@ +* When installing the module, the ID of existing employees is not generated automatically diff --git a/hr_employee_id/readme/USAGE.rst b/hr_employee_id/readme/USAGE.rst new file mode 100644 index 00000000000..8f6b9b58d1d --- /dev/null +++ b/hr_employee_id/readme/USAGE.rst @@ -0,0 +1,2 @@ +When you will create a new employee, the field reference will be +assigned automatically with the next number of the predefined sequence. diff --git a/hr_employee_id/static/description/icon.png b/hr_employee_id/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/hr_employee_id/static/description/icon.png differ diff --git a/hr_employee_id/static/description/index.html b/hr_employee_id/static/description/index.html new file mode 100644 index 00000000000..2f57d2dadc6 --- /dev/null +++ b/hr_employee_id/static/description/index.html @@ -0,0 +1,477 @@ + + + + + +Employee ID + + + +
+

Employee ID

+ + +

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

+

Company wide unique employee ID. Supports:

+
    +
  • Random ID Generation
  • +
  • Sequence
  • +
+

This module supports sequence of employee ID which will be generated +automatically from the sequence predefined.

+

Nevertheless, if you need a difference ID in particular cases +you can pass a custom value for identification_id: if you do it +no automatic generation happens.

+

Table of contents

+ +
+

Installation

+

To install this module, you need to:

+
    +
  • clone the branch 11.0 of the repository https://github.com/OCA/hr
  • +
  • add the path to this repository in your configuration (addons-path)
  • +
  • update the module list
  • +
  • search for “Employee Identification Numbers” in your addons
  • +
  • install the module
  • +
+
+
+

Configuration

+

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

+

To configure the ‘ID Generation Method’, the ‘# of Digits’ and +the ‘Sequence’, activate the developer mode and go to +Employees -> Configuration -> Employee ID.

+
+
+

Usage

+

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

+
+
+

Known issues / Roadmap

+
    +
  • When installing the module, the ID of existing employees is not generated automatically
  • +
+
+
+

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

+
    +
  • CorporateHub
  • +
  • Michael Telahun Makonnen
  • +
  • OpenSynergy Indonesia
  • +
  • Camptocamp
  • +
+
+
+

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_employee_id/tests/__init__.py b/hr_employee_id/tests/__init__.py new file mode 100644 index 00000000000..90f4c7649fa --- /dev/null +++ b/hr_employee_id/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import test_employee_id diff --git a/hr_employee_id/tests/test_employee_id.py b/hr_employee_id/tests/test_employee_id.py new file mode 100644 index 00000000000..48c88867466 --- /dev/null +++ b/hr_employee_id/tests/test_employee_id.py @@ -0,0 +1,170 @@ +# Copyright 2015 Salton Massally +# Copyright 2016 OpenSynergy Indonesia +# Copyright 2018 Brainbean Apps (https://brainbeanapps.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from unittest.mock import patch + +from odoo.exceptions import UserError +from odoo.tests import common + + +class TestEmployeeID(common.TransactionCase): + def setUp(self): + super(TestEmployeeID, self).setUp() + self.employee_model = self.env["hr.employee"] + self.company = self.env.ref("base.main_company") + self.sequence = self.env.ref("hr_employee_id.seq_hr_employee_id") + + def test_random_id_generation(self): + # test ID generation for random + employee = self.employee_model.create({"name": "Employee"}) + + self.assertAlmostEqual(len(employee.identification_id), 5) + + def test_random_id_generation_changed_digits(self): + # test ID generation for random but with defaults changed + self.company.write({"employee_id_random_digits": 10}) + employee = self.employee_model.create({"name": "Employee"}) + + self.assertAlmostEqual(len(employee.identification_id), 10) + + def test_sequences_id_generation(self): + # test ID generation for a provided sequence + self.company.write( + { + "employee_id_gen_method": "sequence", + "employee_id_sequence": self.sequence.id, + } + ) + employee = self.employee_model.create({"name": "Employee"}) + + self.assertTrue(len(employee.identification_id)) + + def test_no_sequences_id_generation(self): + # test ID generation for a provided sequence + self.company.write({"employee_id_gen_method": "sequence"}) + employee = self.employee_model.create({"name": "Employee"}) + + self.assertEqual(employee.identification_id, False) + + def test_custom_id(self): + # if we pass the ID no generation occurs. + # Let's set a sequence and check that is not used at all + self.company.write( + { + "employee_id_gen_method": "sequence", + "employee_id_sequence": self.sequence.id, + } + ) + number = self.sequence.number_next + employee = self.employee_model.create( + {"name": "Employee", "identification_id": "THERE_YOU_GO"} + ) + self.assertEqual(employee.identification_id, "THERE_YOU_GO") + self.assertEqual(self.sequence.number_next, number) + + def test_configuration_default_values(self): + # test loading of default configuration values + self.company.write( + self.company.default_get( + [ + "employee_id_gen_method", + "employee_id_random_digits", + "employee_id_sequence", + ] + ) + ) + config_model = self.env["res.config.settings"] + config = config_model.create({}) + self.assertTrue(config.company_id.id == self.company.id) + self.assertTrue(config.employee_id_gen_method == "random") + self.assertTrue(config.employee_id_random_digits == 5) + self.assertFalse(config.employee_id_sequence is False) + + def test_configuration_set_default_values(self): + """test loading of default values when the company fields are empty""" + + company = self.env.company + company.employee_id_gen_method = False + company.employee_id_random_digits = False + + config_model = self.env["res.config.settings"] + config = config_model.create({}) + + self.assertEqual(config.employee_id_gen_method, "random") + self.assertEqual(config.employee_id_random_digits, 5) + + def test_multi_company_res_config(self): + """Test different values for different companies.""" + + DIGITS2 = 12 + METHOD2 = "sequence" + + Settings = self.env["res.config.settings"] + company = self.env.company + fields = list(Settings.fields_get()) + + # Settings for first company + vals1 = self.company.default_get( + [ + "employee_id_gen_method", + "employee_id_random_digits", + "employee_id_sequence", + ] + ) + vals1.update({"employee_id_random_digits": 6}) + Settings.create(vals1).execute() + + # Set company 2 as main company + company2 = self.env["res.company"].create({"name": "oobO"}) + self.env.user.write( + {"company_ids": [(4, self.company.id)], "company_id": company2.id} + ) + + # Set company 2 settings and read them back + # + sequence2 = ( + self.env["ir.sequence"] + .with_company(company2.id) + .create({"name": "EE ID2", "code": "hr.employee.id2"}) + ) + self.assertEqual(sequence2.company_id.id, company2.id) + vals2 = { + "employee_id_random_digits": DIGITS2, + "employee_id_gen_method": METHOD2, + "employee_id_sequence": sequence2.id, + } + Settings.create(vals2).execute() + res2 = Settings.default_get(fields) + + # Change back to first company and read its settings + self.env.user.write({"company_id": company.id}) + res1 = Settings.default_get(fields) + + self.assertNotEqual(res1["employee_id_random_digits"], DIGITS2) + self.assertNotEqual(res1["employee_id_gen_method"], METHOD2) + self.assertNotEqual(res1["employee_id_sequence"], sequence2.id) + self.assertEqual(res2["employee_id_random_digits"], DIGITS2) + self.assertEqual(res2["employee_id_gen_method"], METHOD2) + self.assertEqual(res2["employee_id_sequence"], sequence2.id) + + def test_generate_identification_id_exception(self): + sequence = self.sequence + company = self.company + company.employee_id_gen_method = "sequence" + company.employee_id_sequence = sequence.id + + # Create an user with 00001 identification_id + self.employee_model.create( + {"name": "First Employee", "identification_id": "00001"} + ) + + # Override the company employee_id_sequence sequence next_by_id + # method to always return 00001 + with patch( + "odoo.addons.base.models.ir_sequence.IrSequence.next_by_id", + return_value="00001", + ): + with self.assertRaises(UserError): + self.employee_model.create({"name": "Second Employee"}) diff --git a/hr_employee_id/views/hr_employee_views.xml b/hr_employee_id/views/hr_employee_views.xml new file mode 100644 index 00000000000..984ca6b3168 --- /dev/null +++ b/hr_employee_id/views/hr_employee_views.xml @@ -0,0 +1,56 @@ + + + + + hr.employee.form.inherit + hr.employee + + + +

+ +

+
+
+
+ + + hr.employee.tree.inherit + hr.employee + + + + + + + + + + Employees + hr.employee + + + + + + + + + + HR - Employees Kanban + hr.employee + + +
  • +
  • + +
  • + +
    +
    + +
    diff --git a/hr_employee_id/views/res_config_settings_views.xml b/hr_employee_id/views/res_config_settings_views.xml new file mode 100644 index 00000000000..3d70ed1d98b --- /dev/null +++ b/hr_employee_id/views/res_config_settings_views.xml @@ -0,0 +1,71 @@ + + + + + res.config.settings.view.form.inherit.hr.employee.id + res.config.settings + + + +

    Employee Identifier

    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    diff --git a/setup/hr_employee_id/odoo/addons/hr_employee_id b/setup/hr_employee_id/odoo/addons/hr_employee_id new file mode 120000 index 00000000000..130956f396a --- /dev/null +++ b/setup/hr_employee_id/odoo/addons/hr_employee_id @@ -0,0 +1 @@ +../../../../hr_employee_id \ No newline at end of file diff --git a/setup/hr_employee_id/setup.py b/setup/hr_employee_id/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/hr_employee_id/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)