Skip to content

[FIX] queue_job: notify managers holding the group through implication - #986

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
HoloborodkoBohdan:19.0-fix-queue_job-subscribe_implied_groups
Oct 26, 2026
Merged

OCA-git-bot merged 1 commit into
OCA:19.0from
HoloborodkoBohdan:19.0-fix-queue_job-subscribe_implied_groups

Conversation

@HoloborodkoBohdan

@HoloborodkoBohdan HoloborodkoBohdan commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

In Odoo 19 res.users.group_ids only holds explicitly assigned groups; implied ones are exposed through all_group_ids. Users who got Job Queue Manager through another group were no longer subscribed to failed jobs.

_subscribe_users_domain searched [("group_ids", "=", group.id)]. In Odoo 19 res.users.group_ids only holds explicitly assigned groups; implied groups are exposed through all_group_ids (searched as group_ids.all_implied_ids).

As a result, users who get Job Queue Manager through another group were no longer subscribed to failed jobs. The domain now uses [("all_group_ids", "in", group.ids)].

Added a test with a direct manager and a manager through an implying group; it fails on the current 19.0 branch.

In Odoo 19 res.users.group_ids only holds explicitly assigned groups;
implied ones are exposed through all_group_ids. Users who got Job Queue
Manager through another group were no longer subscribed to failed jobs.
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@amh-mw amh-mw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code review only, LGTM. Confirmed upstream all_group_ids behavior change. 1

Footnotes

  1. https://github.com/odoo/odoo/commit/34a50e83e654017520c0add727215bd7b528ae19 ↩

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@guewen

guewen commented Oct 26, 2026

Copy link
Copy Markdown
Member

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 19.0-ocabot-merge-pr-986-by-guewen-bump-patch, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

It looks like something changed on 19.0 in the meantime.
Let me try again (no action is required from you).
Prepared branch 19.0-ocabot-merge-pr-986-by-guewen-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 4a94180 into OCA:19.0 Oct 26, 2026
8 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

5 participants