Skip to content

Commit 84903ea

Browse files
Yenthe666omalbastin
authored andcommitted
[auto_backup] FIX: failure type notification
Fixes OCA#710
1 parent 135eb23 commit 84903ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

auto_backup/models/db_backup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@ def backup_log(self):
205205
"<p>%s</p><pre>%s</pre>" % (
206206
_("Database backup failed."),
207207
escaped_tb),
208-
subtype=self.env.ref("auto_backup.failure"))
208+
subtype=self.env.ref(
209+
"auto_backup.mail_message_subtype_failure"
210+
),
211+
)
209212
else:
210213
_logger.info("Database backup succeeded: %s", self.name)
211214
self.message_post(_("Database backup succeeded."))

0 commit comments

Comments
 (0)