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

[17.0][FIX] hr_employee_firstname: removed useless mapped address_home_id #1369

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from

Conversation

DorianMAG
Copy link
Contributor

@DorianMAG DorianMAG commented Jun 19, 2024

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

@OCA-git-bot
Copy link
Contributor

Hi @Savoir-faire Linux, @luisg123v,
some modules you are maintaining are being modified, check this out!

Copy link
Contributor

@luisg123v luisg123v left a comment

Choose a reason for hiding this comment

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

Same as in #1370

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

@DorianMAG DorianMAG force-pushed the 17.0-fix-hr_employee_firstname branch from 4a6a5a6 to 529904e Compare June 20, 2024 08:30
@DorianMAG
Copy link
Contributor Author

Same as in #1370

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

Hi @luisg123v
Thank you for your review.
The commit description is corrected.
I updated my message regarding the OCB/OdooSA source code.
Updating the link with a permalink.

Regards

@DorianMAG DorianMAG requested a review from luisg123v June 20, 2024 08:33
@DorianMAG
Copy link
Contributor Author

If the partner_firstname module is installed,
this makes it impossible to install this module,
because the address_home_id field no longer exists in v17,
and it is replaced by a non-relational field which therefore no longer returns
a recordset partner

Copy link

@JulienMartinez JulienMartinez left a comment

Choose a reason for hiding this comment

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

LGTM

@mahmud-ecoservice
Copy link

Hi @luisg123v ,
I have the same issue. The address_home_id field is not exists in v17 and causing problems with the module installation.

@DorianMAG DorianMAG force-pushed the 17.0-fix-hr_employee_firstname branch from 882a0b4 to 529904e Compare August 8, 2024 07:50
@@ -168,7 +168,6 @@ def _install_employee_firstname(self):
def _update_partner_firstname(self):
for employee in self:
partners = employee.mapped("user_id.partner_id")
partners |= employee.mapped("address_home_id")
Copy link
Contributor

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 work_contact_id? Or is it expected for it to be removed?

@luisg123v
Copy link
Contributor

Hi @DorianMAG,

I still see the old commit message. Could you check again, please?

Regards,

@DorianMAG
Copy link
Contributor Author

Hi @DorianMAG,

I still see the old commit message. Could you check again, please?

Regards,

Hello, yes, thank you, I'll take a look at it quickly.

@DorianMAG DorianMAG force-pushed the 17.0-fix-hr_employee_firstname branch from 529904e to d9a012f Compare August 26, 2024 09:10
@DorianMAG
Copy link
Contributor Author

@luisg123v
It's done, but the test are now failing. Should I do something else?

Copy link
Contributor

@luisg123v luisg123v left a comment

Choose a reason for hiding this comment

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

  • Commit message is not correct yet, it now seems the combination of two different commits.
  • Please rebase to see if CI is fixed.

…ntact_id for v17

this no longer exists in v17 and replaced by a non-relational field (field.char) named private_street
@DorianMAG DorianMAG force-pushed the 17.0-fix-hr_employee_firstname branch from d9a012f to 5e7f5b8 Compare November 22, 2024 15:57
@DorianMAG
Copy link
Contributor Author

  • Commit message is not correct yet, it now seems the combination of two different commits.

    • Please rebase to see if CI is fixed.

Done
regards

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

Successfully merging this pull request may close these issues.

6 participants