Skip to content

[20.0][MIG] queue_job: Migration to 20.0 - #999

Open
dhongu wants to merge 1 commit into
OCA:20.0from
dhongu:20.0-mig-queue_job
Open

dhongu wants to merge 1 commit into
OCA:20.0from
dhongu:20.0-mig-queue_job

Conversation

@dhongu

@dhongu dhongu commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Migration of queue_job to Odoo 20.0.

Main changes:

  • ir.model.access + ir.rule → ir.access
  • registry.clear_cache → transaction.invalidate_ormcache
  • controller: use odoo.sql_db.PG_CONCURRENCY_EXCEPTIONS_TO_RETRY (odoo.service.model was removed); env.clear() → env.transaction.clear()
  • jobrunner: odoo.modules.db.list_dbs (odoo.service.db was removed)
  • fields: _setup_attrs → _setup_attrs__; tools.ormcache → api.ormcache
  • JS: job_direct_graph widget ported to Owl 3 (useProps, signal ref)
  • views: remaining_days widget → relative_date; stat button icon
  • tests: odoo.http.Request → odoo.http.requestlib.Request
  • lint fixes required by the 20.0 template (ruff 0.16.8, pylint-odoo 10): a few small refactors, and # noqa: DTZ005 on datetime.now() because Odoo stores naive UTC datetimes

Tested locally on Odoo 20.0 with PostgreSQL 16: the module installs and all 54 queue_job tests pass. pre-commit run -a is clean.

This PR also includes the work prepared by @jaredkipe in #997 (co-authored).

test_queue_job and the other addons will follow in separate PRs.

🤖 Generated with Claude Code

@oca-cla-bot

oca-cla-bot Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

- ir.model.access + ir.rule -> ir.access
- registry.clear_cache -> transaction.invalidate_ormcache
- controller: use odoo.sql_db.PG_CONCURRENCY_EXCEPTIONS_TO_RETRY
  (odoo.service.model was removed); env.clear() -> env.transaction.clear()
- jobrunner: odoo.modules.db.list_dbs (odoo.service.db was removed)
- fields: _setup_attrs -> _setup_attrs__; tools.ormcache -> api.ormcache
- JS: job_direct_graph widget ported to Owl 3 (useProps, signal ref)
- views: remaining_days widget -> relative_date; stat button icon
- tests: odoo.http.Request -> odoo.http.requestlib.Request
- lint fixes required by the 20.0 template (ruff 0.16, pylint-odoo 10)

Co-authored-by: Jared Kipe <jared@hibou.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants