Skip to content

Commit

Permalink
[auto_backup] FIX: failure type notification
Browse files Browse the repository at this point in the history
Fixes OCA#710
  • Loading branch information
Yenthe666 authored and rpinset committed Jun 28, 2024
1 parent c7d87ea commit 17e9158
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion auto_backup/models/db_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ def backup_log(self):
"<p>%s</p><pre>%s</pre>" % (
_("Database backup failed."),
escaped_tb),
subtype=self.env.ref("auto_backup.failure"))
subtype=self.env.ref(
"auto_backup.mail_message_subtype_failure"
),
)
else:
_logger.info("Database backup succeeded: %s", self.name)
self.message_post(_("Database backup succeeded."))
Expand Down

0 comments on commit 17e9158

Please sign in to comment.