Skip to content

[19.0][FIX] project_hr: allow portal users to open shared tasks - #1876

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
ForgeFlow:19.0-fix-project_hr
Nov 6, 2026
Merged

OCA-git-bot merged 1 commit into
OCA:19.0from
ForgeFlow:19.0-fix-project_hr

Conversation

@ThiagoMForgeFlow

Copy link
Copy Markdown
Contributor

The project sharing task form shows user_ids, whose domain depends on domain_user_ids. In 19.0, reading a field outside TASK_PORTAL_READABLE_FIELDS raises AccessError, so portal users can't open shared tasks.

This makes domain_user_ids portal readable and computes it with compute_sudo=True, as domain_hr_category_ids already does, because the compute reads hr categories. A portal test is added.

@ForgeFlow

domain_user_ids is needed by the project sharing task form, but it was
not portal readable and its compute read hr categories without sudo.
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@pedrobaeza pedrobaeza added this to the 19.0 milestone Nov 6, 2026

@LoisRForgeFlow LoisRForgeFlow left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 19.0-ocabot-merge-pr-1876-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit d6f0ba0 into OCA:19.0 Nov 6, 2026
7 of 8 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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