|
@ -205,7 +205,10 @@ class DbBackup(models.Model): |
|
|
"<p>%s</p><pre>%s</pre>" % ( |
|
|
"<p>%s</p><pre>%s</pre>" % ( |
|
|
_("Database backup failed."), |
|
|
_("Database backup failed."), |
|
|
escaped_tb), |
|
|
escaped_tb), |
|
|
subtype=self.env.ref("auto_backup.failure")) |
|
|
|
|
|
|
|
|
subtype=self.env.ref( |
|
|
|
|
|
"auto_backup.mail_message_subtype_failure" |
|
|
|
|
|
), |
|
|
|
|
|
) |
|
|
else: |
|
|
else: |
|
|
_logger.info("Database backup succeeded: %s", self.name) |
|
|
_logger.info("Database backup succeeded: %s", self.name) |
|
|
self.message_post(_("Database backup succeeded.")) |
|
|
self.message_post(_("Database backup succeeded.")) |
|
|