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

[16.0][MIG] hr_employee_id: Migration to 16.0 #1373

Merged
merged 32 commits into from
Sep 16, 2024

Conversation

maisim
Copy link

@maisim maisim commented Jun 26, 2024

  • Updated the fields syntax in hr_employee_id/views/hr_employee_views.xml
  • Updated the create method in models/hr_employee.py to not break batch mode create
  • Add test : test_generate_identification_id_exception

To replace #1340 wich seems stuck

miketelahun and others added 30 commits June 26, 2024 11:38
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/
@maisim maisim mentioned this pull request Jun 26, 2024
28 tasks
@maisim maisim changed the title [16.0][MIG] mig hr employee [16.0][MIG] mig hr_employee_id Jun 27, 2024
@maisim maisim force-pushed the 16.0-mig-hr_employee_id branch 2 times, most recently from 2894b6c to 241af3e Compare June 28, 2024 09:42
@maisim
Copy link
Author

maisim commented Jun 29, 2024

ping @OCA/human-resources-maintainers

@alexey-pelykh
Copy link
Contributor

/ocabot migration hr_employee_id

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Jun 29, 2024
@OCA-git-bot
Copy link
Contributor

The migration issue (#1141) has not been updated to reference the current pull request because a previous pull request (#1340) is not closed.
Perhaps you should check that there is no duplicate work.
CC @Chirag-OSI

@maisim
Copy link
Author

maisim commented Aug 15, 2024

Hi @alexey-pelykh !
Any way to get this unlocked ?

@alexey-pelykh
Copy link
Contributor

@maisim you should do the migration commits as in https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0 and do the improvements separately. As for #1340 - I'll follow the @pedrobaeza's lead here

@maisim maisim force-pushed the 16.0-mig-hr_employee_id branch from 241af3e to b17964b Compare August 16, 2024 07:14
maisim added 2 commits August 16, 2024 09:31
- Updated the create method in models/hr_employee.py to not break batch mode create
- Add test : test_generate_identification_id_exception
@maisim maisim force-pushed the 16.0-mig-hr_employee_id branch from b17964b to fceb15b Compare August 16, 2024 07:34
@maisim
Copy link
Author

maisim commented Aug 16, 2024

Hi @alexey-pelykh @pedrobaeza

I separated my changes into different commits.
However, they are all necessary for 16.0 to be happy. So, in my opinion, they have their place in the migration PR.
I hope it suits you like that.

@pedrobaeza pedrobaeza changed the title [16.0][MIG] mig hr_employee_id [16.0][MIG] hr_employee_id: Migration to 16.0 Aug 16, 2024
@pedrobaeza
Copy link
Member

There's no answer in the other PR, so let's use this one.

/ocabot migration hr_employee_id

@maisim
Copy link
Author

maisim commented Sep 16, 2024

@gurneyalex @nimarosa @Saran440
I see you have done a review for previous migrations of this module, could you take a look at it here? Thanks! 😗

@nimarosa
Copy link
Contributor

/ocabot merge nobump

Functional test okay in runnoat. Code looks good too.

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-1373-by-nimarosa-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit d4e78a9 into OCA:16.0 Sep 16, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 2ebbe1a. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.