Skip to content

[FIX] hr_employee_second_lastname: fix access error when reading employees public info#1562

Merged
OCA-git-bot merged 1 commit intoOCA:19.0from
vauxoo-dev:19.0-hr_employee_second_lastname-fix-access-error-isaako34
Apr 27, 2026
Merged

[FIX] hr_employee_second_lastname: fix access error when reading employees public info#1562
OCA-git-bot merged 1 commit intoOCA:19.0from
vauxoo-dev:19.0-hr_employee_second_lastname-fix-access-error-isaako34

Conversation

@isaako34
Copy link
Copy Markdown

@isaako34 isaako34 commented Apr 18, 2026

In v19, hr.employee.base was removed 1 and lastname2 was moved back to hr.employee but did not replicate it on hr.employee.public.

Since lastname2 is part of the employee display name and not sensitive data, declare it as a related field on hr.employee.public so non-HR users can read employees without triggering an AccessError.

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @luisg123v,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:19.0 mod:hr_employee_second_lastname Module hr_employee_second_lastname labels Apr 18, 2026
@isaako34 isaako34 force-pushed the 19.0-hr_employee_second_lastname-fix-access-error-isaako34 branch from ca96749 to aad9dd7 Compare April 18, 2026 00:21
Copy link
Copy Markdown
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.

Regarding commit message:

  • Title could focuse on the actual issue, which is an access error when reading employees public info
  • The reference [1] (ceb9584) is for the migration of hr_employee_firstname, not hr_employee_second_lastname.

@isaako34 isaako34 force-pushed the 19.0-hr_employee_second_lastname-fix-access-error-isaako34 branch from aad9dd7 to 84844b4 Compare April 18, 2026 00:57
@isaako34 isaako34 changed the title [FIX] hr_employee_second_lastname: expose lastname2 on public employee [FIX] hr_employee_second_lastname: fix access error when reading employees public info Apr 18, 2026
@isaako34 isaako34 requested a review from luisg123v April 18, 2026 00:58
Copy link
Copy Markdown
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.

LGTM 👍

@luisg123v
Copy link
Copy Markdown
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 19.0-ocabot-merge-pr-1562-by-luisg123v-bump-patch, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Apr 18, 2026
Signed-off-by luisg123v
@OCA-git-bot
Copy link
Copy Markdown
Contributor

@luisg123v your merge command was aborted due to failed check(s), which you can inspect on this commit of 19.0-ocabot-merge-pr-1562-by-luisg123v-bump-patch.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

…oyees public info

In v19, hr.employee.base was removed [1] and lastname2 was moved
back to `hr.employee` but did not replicate it on `hr.employee.public`.

Since lastname2 is part of the employee display name and not sensitive
data, declare it as a related field on hr.employee.public so non-HR
users can read employees without triggering an AccessError.

[1]: OCA@d2e5fe75
@isaako34 isaako34 force-pushed the 19.0-hr_employee_second_lastname-fix-access-error-isaako34 branch from 84844b4 to cffd026 Compare April 27, 2026 16:44
@luisg123v
Copy link
Copy Markdown
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-1562-by-luisg123v-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit fe22a11 into OCA:19.0 Apr 27, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at ec633ea. 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.

4 participants