diff --git a/pms/models/pms_folio.py b/pms/models/pms_folio.py index e7549c981..8e7b4fce2 100644 --- a/pms/models/pms_folio.py +++ b/pms/models/pms_folio.py @@ -1279,7 +1279,9 @@ class PmsFolio(models.Model): if folio.email and folio.create_date.date() == fields.Date.today(): template = folio.pms_property_id.property_confirmed_template try: - template.send_mail(folio.id, force_send=True) + template.send_mail( + folio.id, force_send=True, email_values={"auto_delete": False} + ) except MailDeliveryException: self.env["ir.logging"].create( { @@ -1309,7 +1311,9 @@ class PmsFolio(models.Model): if folio.email: template = folio.pms_property_id.property_modified_template try: - template.send_mail(folio.id, force_send=True) + template.send_mail( + folio.id, force_send=True, email_values={"auto_delete": False} + ) except MailDeliveryException: self.env["ir.logging"].create( { @@ -1343,7 +1347,11 @@ class PmsFolio(models.Model): reservation.pms_property_id.property_canceled_template ) try: - template.send_mail(reservation.id, force_send=True) + template.send_mail( + reservation.id, + force_send=True, + email_values={"auto_delete": False}, + ) except MailDeliveryException: self.env["ir.logging"].create( {