Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG][11.0]hr_employee_id:Migration to 11.0 #460

Merged
merged 11 commits into from
Aug 31, 2018
91 changes: 91 additions & 0 deletions hr_employee_id/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

===============================
Employee Identification Numbers
===============================

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.

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.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/116/11.0

Known issues / Roadmap
======================

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

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Credits
=======

Contributors
------------

* Michael Telahun Makonnen <mmakonnen@gmail.com>
* Adrien Peiffer (ACSONE) <adrien.peiffer@acsone.eu>
* Salton Massally (iDT Labs) <smassally@idtlabs.sl>
* Andhitia Rama (OpenSynergy Indonesia) <andhitia.r@gmail.com>
* Simone Orsi <simone.orsi@camptocamp.com>
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>

Maintainer
----------

.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
5 changes: 5 additions & 0 deletions hr_employee_id/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# © 2011, 2013 Michael Telahun Makonnen <mmakonnen@gmail.com>
# © 2016 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
21 changes: 21 additions & 0 deletions hr_employee_id/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# © 2011, 2013 Michael Telahun Makonnen <mmakonnen@gmail.com>
# © 2016 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Employee ID',
'version': '11.0.1.0.0',
'license': 'AGPL-3',
'category': 'Generic Modules/Human Resources',
'author': 'Michael Telahun Makonnen, '
'OpenSynergy Indonesia,'
'Camptocamp,'
'Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/hr',
'depends': ['hr'],
'data': [
'views/res_config_views.xml',
'views/hr_employee_views.xml',
'data/hr_employee_sequence.xml',
],
'installable': True,
}
11 changes: 11 additions & 0 deletions hr_employee_id/data/hr_employee_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

<record id="seq_employeeid_ref" model="ir.sequence">
<field name="name">Default Employee ID Seq</field>
<field name="code">employeeid.default.seq</field>
<field name="prefix">%(y)s</field>
<field name="padding">5</field>
</record>

</odoo>
163 changes: 163 additions & 0 deletions hr_employee_id/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_employee_id
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# abdullah alsabi <alsabi.abdullah@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-10 04:30+0000\n"
"PO-Revision-Date: 2017-06-10 04:30+0000\n"
"Last-Translator: abdullah alsabi <alsabi.abdullah@gmail.com>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: hr_employee_id
#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employeeid_config_settings_employee_id_random_digits
#: model:ir.model.fields,field_description:hr_employee_id.field_res_company_employee_id_random_digits
msgid "# of Digits"
msgstr "عدد الأرقام"

#. module: hr_employee_id
#: model:ir.ui.view,arch_db:hr_employee_id.view_human_resources_employeeid_configuration
msgid ""
"<span>(*) This configuration is related to the company you're logged into.</"
"span>"
msgstr ""
"<span>(*) This configuration is related to the company you're logged into.</"
"span>"

#. module: hr_employee_id
#: model:ir.ui.view,arch_db:hr_employee_id.view_human_resources_employeeid_configuration
msgid "Apply"
msgstr "تطبيق"

#. module: hr_employee_id
#: model:ir.ui.view,arch_db:hr_employee_id.view_human_resources_employeeid_configuration
msgid "Cancel"
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.fields,field_description:hr_employee_id.field_hr_employeeid_config_settings_company_id
msgid "Company"
msgstr "الشركة"

#. module: hr_employee_id
#: model:ir.actions.act_window,name:hr_employee_id.action_human_resources_employeeid_config
#: model:ir.ui.view,arch_db:hr_employee_id.view_human_resources_employeeid_configuration
msgid "Configure Employee ID"
msgstr "إعداد رقم المستخدم"

#. module: hr_employee_id
#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employeeid_config_settings_create_uid
msgid "Created by"
msgstr "انشئ من قبل"

#. module: hr_employee_id
#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employeeid_config_settings_create_date
msgid "Created on"
msgstr "وقت الانشاء"

#. module: hr_employee_id
#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employeeid_config_settings_display_name
msgid "Display Name"
msgstr "إسم العرض"

#. module: hr_employee_id
#: model:ir.model,name:hr_employee_id.model_hr_employee
msgid "Employee"
msgstr "الموظف"

#. module: hr_employee_id
#: model:ir.ui.menu,name:hr_employee_id.menu_account_config
msgid "Employee ID"
msgstr "رقم الموظف"

#. module: hr_employee_id
#: model:ir.ui.view,arch_db:hr_employee_id.view_human_resources_employeeid_configuration
msgid "Employee ID *"
msgstr "رقم الموظف *"

#. module: hr_employee_id
#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employeeid_config_settings_employee_id_sequence
#: model:ir.model.fields,field_description:hr_employee_id.field_res_company_employee_id_sequence
msgid "Employee ID Sequence"
msgstr ""

#. module: hr_employee_id
#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employeeid_config_settings_id
msgid "ID"
msgstr ""

#. module: hr_employee_id
#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employeeid_config_settings_employee_id_gen_method
#: model:ir.model.fields,field_description:hr_employee_id.field_res_company_employee_id_gen_method
msgid "ID Generation Method"
msgstr ""

#. module: hr_employee_id
#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employeeid_config_settings___last_update
msgid "Last Modified on"
msgstr ""

#. module: hr_employee_id
#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employeeid_config_settings_write_uid
msgid "Last Updated by"
msgstr "اخر تعديل من قبل"

#. module: hr_employee_id
#: model:ir.model.fields,field_description:hr_employee_id.field_hr_employeeid_config_settings_write_date
msgid "Last Updated on"
msgstr "اخر تعديل في"

#. module: hr_employee_id
#: model:ir.model.fields,help:hr_employee_id.field_hr_employeeid_config_settings_employee_id_random_digits
#: model:ir.model.fields,help:hr_employee_id.field_res_company_employee_id_random_digits
msgid "Number of digits making up the ID"
msgstr ""

#. module: hr_employee_id
#: model:ir.model.fields,help:hr_employee_id.field_hr_employeeid_config_settings_employee_id_sequence
#: model:ir.model.fields,help:hr_employee_id.field_res_company_employee_id_sequence
msgid "Pattern to be used for employee ID Generation"
msgstr ""

#. module: hr_employee_id
#: selection:res.company,employee_id_gen_method:0
msgid "Random"
msgstr "عشوائي"

#. module: hr_employee_id
#: selection:res.company,employee_id_gen_method:0
msgid "Sequence"
msgstr "متسلسل"

#. module: hr_employee_id
#: sql_constraint:hr.employee:0
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:49
#, python-format
msgid ""
"Unable to generate an Employee ID number that is unique."
msgstr ""

#. module: hr_employee_id
#: model:ir.model,name:hr_employee_id.model_hr_employeeid_config_settings
msgid "hr.employeeid.config.settings"
msgstr ""
Loading