Skip to content

Commit

Permalink
Merge PR OCA#708 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by guewen
  • Loading branch information
OCA-git-bot committed Dec 11, 2024
2 parents 7c51fcb + 16393a6 commit 6fbf30e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions queue_job/models/queue_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ def write(self, vals):
lambda records: records.env.user.id != vals["user_id"]
)

result = super().write(vals)

if vals.get("state") == "failed":
self._message_post_on_failure()

result = super().write(vals)

for record in different_user_jobs:
# the user is stored in the env of the record, but we still want to
# have a stored user_id field to be able to search/groupby, so
Expand Down

0 comments on commit 6fbf30e

Please sign in to comment.