From 52d7582d445a6fd4e8beccbf7e4339048fccf343 Mon Sep 17 00:00:00 2001 From: "Yenthe V.G" Date: Mon, 23 Jan 2017 08:04:41 +0100 Subject: [PATCH] [auto_backup] FIX: failure type notification Fixes https://github.com/OCA/server-tools/issues/710 --- auto_backup/models/db_backup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/auto_backup/models/db_backup.py b/auto_backup/models/db_backup.py index 4e30602aa..d892fe4a5 100644 --- a/auto_backup/models/db_backup.py +++ b/auto_backup/models/db_backup.py @@ -205,7 +205,10 @@ class DbBackup(models.Model): "

%s

%s
" % ( _("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."))