Skip to content

[19.0][MIG] hr_employee_id: Migration to 19.0#1509

Open
bizzappdev wants to merge 39 commits into
OCA:19.0from
BizzAppDev-Systems:19.0-mig-hr_employee_id-BAD
Open

[19.0][MIG] hr_employee_id: Migration to 19.0#1509
bizzappdev wants to merge 39 commits into
OCA:19.0from
BizzAppDev-Systems:19.0-mig-hr_employee_id-BAD

Conversation

@bizzappdev
Copy link
Copy Markdown

No description provided.

miketelahun and others added 30 commits October 1, 2025 12:24
Initial Attempt of a port to V8
Some improvements made are as follows:
* Ability so choose ID generation method
* Sequence vs Random

hr_employee_id: code linting and copyright removals

apply suggeste changes
* Use identification_id provided by hr addon rather than employee_no
* use new api in configuration
* pep8 changes

Update res_company.py

make fields assignable from res_company

add tests

Remove duplicate license  key

import openerp.exception.Warning as UserWarning

[FIX] import Warning as UserWarning
* Change .py header according OCA simple header
* Add parameter name on field declaration
* Greenify travis
* Modify README.rst. Removing tabs from xml
* Remove space from xml files
* Make module installable
Currently translated at 53.3% (8 of 15 strings)

Translation: hr-12.0/hr-12.0-hr_employee_id
Translate-URL: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_employee_id/ar/
Currently translated at 100.0% (16 of 16 strings)

Translation: hr-12.0/hr-12.0-hr_employee_id
Translate-URL: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_employee_id/es/
Currently translated at 81.2% (13 of 16 strings)

Translation: hr-12.0/hr-12.0-hr_employee_id
Translate-URL: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_employee_id/de/
Currently translated at 81.2% (13 of 16 strings)

Translation: hr-12.0/hr-12.0-hr_employee_id
Translate-URL: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_employee_id/hr/
Currently translated at 100.0% (16 of 16 strings)

Translation: hr-12.0/hr-12.0-hr_employee_id
Translate-URL: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_employee_id/pt_BR/
o test default values even when company fields are false
o test multi-company correctness
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: hr-15.0/hr-15.0-hr_employee_id
Translate-URL: https://translation.odoo-community.org/projects/hr-15-0/hr-15-0-hr_employee_id/
Currently translated at 100.0% (16 of 16 strings)

Translation: hr-15.0/hr-15.0-hr_employee_id
Translate-URL: https://translation.odoo-community.org/projects/hr-15-0/hr-15-0-hr_employee_id/it/
Currently translated at 100.0% (16 of 16 strings)

Translation: hr-15.0/hr-15.0-hr_employee_id
Translate-URL: https://translation.odoo-community.org/projects/hr-15-0/hr-15-0-hr_employee_id/it/
- Updated the create method in models/hr_employee.py to not break batch mode create
@bizzappdev bizzappdev marked this pull request as ready for review October 1, 2025 07:52
@vedant-agravat
Copy link
Copy Markdown

Code and functional review: LGTM.

@Saran440
Copy link
Copy Markdown
Member

/ocabot migration hr_employee_id

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Dec 12, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Dec 12, 2025
19 tasks
Copy link
Copy Markdown
Contributor

@alexey-pelykh alexey-pelykh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the 19.0 migration! As the original author — this looks good. The employee ID generation logic and company-wide uniqueness constraint are preserved correctly.

LGTM.

Copy link
Copy Markdown
Contributor

@BhaveshHeliconia BhaveshHeliconia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.