Skip to content

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

Open
HoloborodkoBohdan wants to merge 1 commit into
OCA:19.0from
HoloborodkoBohdan:19.0-fix-queue_job-subscribe_implied_groups
Open

HoloborodkoBohdan wants to merge 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

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 ↩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants