Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion queue_job/models/queue_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from odoo import _, api, exceptions, fields, models
from odoo.osv import expression
from odoo.tools import html_escape
from odoo.tools import config, html_escape

from odoo.addons.base_sparse_field.models.fields import Serialized

Expand Down Expand Up @@ -397,6 +397,8 @@ def autovacuum(self):
)
if jobs:
jobs.unlink()
if not config["test_enable"]:
self.env.cr.commit() # pylint: disable=E8102
else:
break
return True
Expand Down