Skip to content

Commit

Permalink
[FIX] queue_job: Environment.manage() is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Sep 29, 2024
1 parent 34a58bc commit 89c2364
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions queue_job/migrations/15.0.1.1.0/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@


def migrate(cr, version):
with api.Environment.manage():
env = api.Environment(cr, SUPERUSER_ID, {})
_logger.info("Computing exception name for failed jobs")
_compute_jobs_new_values(env)
env = api.Environment(cr, SUPERUSER_ID, {})
_logger.info("Computing exception name for failed jobs")
_compute_jobs_new_values(env)


def _compute_jobs_new_values(env):
Expand Down

0 comments on commit 89c2364

Please sign in to comment.