diff --git a/queue_job/migrations/15.0.1.1.0/post-migration.py b/queue_job/migrations/15.0.1.1.0/post-migration.py index f6eff72707..907dd05344 100644 --- a/queue_job/migrations/15.0.1.1.0/post-migration.py +++ b/queue_job/migrations/15.0.1.1.0/post-migration.py @@ -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):