-
-
Notifications
You must be signed in to change notification settings - Fork 672
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
[17.0][FIX] hr_employee_second_lastname: removed useless mapped address_home_id #1370
base: 17.0
Are you sure you want to change the base?
Conversation
Hi @luisg123v, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding commit message:
- Title doesn't conform guidelines
- Missing commit description
Besides, regarding PR description:
- Not clear enough, why the OCB should affect? This should work with mnative Odoo
- Link is not a permalink
3364a66
to
93429c5
Compare
Hi @luisg123v Regards |
If the partner_firstname module is installed, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @luisg123v , any chance to have a new review here ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
easy code review,
tested on production
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
The commit message doesn't conform guidelines yet.
Current commit message is:
[17.0][FIX] hr_employee_firstname: removal of the mapped method which became useless with the address_home_id field, this no longer exists in v17 and replaced by a non-relational field (field.char) named private_street
It needs the following changes to conform guidelines:
- Remove version
- It should be a short title, followed by a blank line, followed by a message
- Lines should be wrapped to 72 characters
@@ -75,7 +75,6 @@ def _prepare_vals_on_write_firstname_lastname(self, vals): | |||
def _update_partner_firstname(self): | |||
for employee in self: | |||
partners = employee.mapped("user_id.partner_id") | |||
partners |= employee.mapped("address_home_id") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be replaced by address_id
instead?
CC @xmglord
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it should be replaced with work_contact_id
since address_home_id
was split in multiple fields. I took this from Odoo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your feedback, I will fix this quickly.
Regards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's done, but the tests are now failing. Should I do something else?
34e8799
to
921afce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Missing commit description.
- Please rebase to see if CI is fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…e_id Remove useless mapped. The source code has changed in OCB/OdooSA. The relational field no longer exists on the address in V17. https://github.com/OCA/OCB/blob/3afef8250c829406a8fd227a6bd9f71c4f80ff29/addons/hr/models/hr_employee.py#L49
921afce
to
b6c9dfd
Compare
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Remove useless mapped.
The source code has changed in OCB/OdooSA.
The relational field no longer exists on the address in V17.
https://github.com/OCA/OCB/blob/3afef8250c829406a8fd227a6bd9f71c4f80ff29/addons/hr/models/hr_employee.py#L49