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] hr_employee_firstname: Migration to 16.0 #1154

Merged
merged 44 commits into from
Nov 5, 2022

Conversation

luistorresm
Copy link
Contributor

No description provided.

feketemihai and others added 30 commits November 5, 2022 00:20
* remove ensure one
* Add decorator
* Update name on write and update related partner firstname lastname
* Modify README file
* Change version format
* Consistency with partner_firstname module
* Check if the partner isn't already in the list
* Remove check on partner_firstname installation
… value not the key of dict (OCA#215)

* Update split names at module install to get the value not the key of the dict.
* Add test for checking right values in firstname, lastname after install
Currently translated at 100.0% (3 of 3 strings)

Translation: hr-11.0/hr-11.0-hr_employee_firstname
Translate-URL: https://translation.odoo-community.org/projects/hr-11-0/hr-11-0-hr_employee_firstname/fa/
Currently translated at 100.0% (3 of 3 strings)

Translation: hr-11.0/hr-11.0-hr_employee_firstname
Translate-URL: https://translation.odoo-community.org/projects/hr-11-0/hr-11-0-hr_employee_firstname/de/
Currently translated at 100.0% (4 of 4 strings)

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

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

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

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

Translation: hr-12.0/hr-12.0-hr_employee_firstname
Translate-URL: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_employee_firstname/hr/
britoederr and others added 10 commits November 5, 2022 00:30
Currently translated at 100.0% (4 of 4 strings)

Translation: hr-14.0/hr-14.0-hr_employee_firstname
Translate-URL: https://translation.odoo-community.org/projects/hr-14-0/hr-14-0-hr_employee_firstname/pt_BR/
Currently translated at 60.0% (6 of 10 strings)

Translation: hr-14.0/hr-14.0-hr_employee_firstname
Translate-URL: https://translation.odoo-community.org/projects/hr-14-0/hr-14-0-hr_employee_firstname/ca/
Starting from 14.0, employee model was split into three models:
- `hr.employee.public`
- `hr.employee.private`
- `hr.employee` (a common model)

When this module was migrated, such  split was not taken into account.

This commit moves fields to the common model, so they don't fail when
read from the public employee model.

Closes OCA#990

Co-Authored-By: Luis González <[email protected]>
Currently translated at 100.0% (11 of 11 strings)

Translation: hr-14.0/hr-14.0-hr_employee_firstname
Translate-URL: https://translation.odoo-community.org/projects/hr-14-0/hr-14-0-hr_employee_firstname/de/
Currently translated at 54.5% (6 of 11 strings)

Translation: hr-15.0/hr-15.0-hr_employee_firstname
Translate-URL: https://translation.odoo-community.org/projects/hr-15-0/hr-15-0-hr_employee_firstname/pt_BR/
Currently translated at 63.6% (7 of 11 strings)

Translation: hr-15.0/hr-15.0-hr_employee_firstname
Translate-URL: https://translation.odoo-community.org/projects/hr-15-0/hr-15-0-hr_employee_firstname/pt_BR/
@luistorresm luistorresm force-pushed the 16.0-hr_employee_firstname-luist branch from de11d76 to d95b219 Compare November 5, 2022 00:34
@luistorresm luistorresm mentioned this pull request Nov 5, 2022
28 tasks
Copy link

@moylop260 moylop260 left a comment

Choose a reason for hiding this comment

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

👍

@moylop260
Copy link

Unittests passing well and tested functionally:

  • Screenshot 2022-11-04 at 18 59 27

So, I think we can merge it

@moylop260
Copy link

/ocabot merge nobump

@etobella
Copy link
Member

etobella commented Nov 5, 2022

I think ocabot had some issue here...

/ocabot merge nobump

@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-1154-by-etobella-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 0db4da9 into OCA:16.0 Nov 5, 2022
@OCA-git-bot
Copy link
Contributor

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

@etobella
Copy link
Member

etobella commented Nov 5, 2022

/ocabot migration hr_employee_firstname

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Nov 5, 2022
@luistorresm luistorresm deleted the 16.0-hr_employee_firstname-luist branch November 7, 2022 15:11
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.