[19.0][FIX] queue_job: remove deprecated base.user_admin reference - #973
Open
neoand wants to merge 1 commit into
Open
[19.0][FIX] queue_job: remove deprecated base.user_admin reference#973neoand wants to merge 1 commit into
neoand wants to merge 1 commit into
Conversation
base.user_admin was removed in Odoo 17+ (replaced by base.group_system +
admin user via separate <record model="res.users">). It is not
available as a public xmlid in Odoo 17/18/19, causing -u queue_job
to fail with:
ValueError: External ID not found in the system: base.user_admin
while evaluating
"[Command.link(ref('base.user_root')), Command.link(ref('base.user_admin'))]"
Drop the second Command.link. Users (including admins) can still be
added to the group via backoffice (Settings > Users & Companies) or
via xmlid override in a downstream module.
Refs:
- neoand/verbum fork where this caused deploy blocks (2026-08-28)
- OCA/queue#pending
Contributor
|
The following commit authors need to sign the Contributor License Agreement: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
`base.user_admin` was removed in Odoo 17+ (replaced by `base.group_system` + admin user via a separate ```). The xmlid is not available as a public reference in Odoo 17/18/19.
The current `security.xml` references it in `group_queue_job_manager.user_ids`:
```xml
```
This breaks `-u queue_job` on Odoo 17/18/19 with:
```
ValueError: External ID not found in the system: base.user_admin
while evaluating
"[Command.link(ref('base.user_root')), Command.link(ref('base.user_admin'))]"
```
Fix
Drop the second `Command.link`. Only `base.user_root` remains. Users (including admins) can still be added to the group via backoffice (Settings > Users & Companies > select user > Access Rights tab) or via a custom xmlid in a downstream module.
```diff
-
+
```
Reproduction
On any Odoo 17/18/19 deployment with `queue_job` 19.0.x installed:
```bash
odoo -d -u queue_job --stop-after-init --without-demo=all
ValueError: External ID not found in the system: base.user_admin
```
Related
The same bug exists in OCA/server-tools `auditlog` 19.0.x (`res_groups.xml`). A separate PR is needed there. Note that auditlog in the verbum fork has already been patched locally (commit 272d154 in neoand/verbum) to avoid the broken reference — happy to mirror that change here if OCA maintainers prefer a single-source approach.
Tested by