From 063809f3295c65e81448d3d8ec58f5e4da32eb58 Mon Sep 17 00:00:00 2001 From: Juliana <juliana@le-filament.com> Date: Wed, 15 Jun 2022 16:28:10 +0200 Subject: [PATCH] [ADD]Force send mail --- models/acc_contract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/acc_contract.py b/models/acc_contract.py index d5a7101..14e97ff 100644 --- a/models/acc_contract.py +++ b/models/acc_contract.py @@ -55,12 +55,12 @@ class AccContract(models.Model): template = self.env.ref( 'acc_operation.email_template_document', raise_if_not_found=False) - template.with_context().send_mail(doc.seller_id.id) + template.with_context().send_mail(doc.seller_id.id, force_send=True) if doc.buyer_id: template = self.env.ref( 'acc_operation.email_template_document', raise_if_not_found=False) - template.with_context().send_mail(doc.buyer_id.id) + template.with_context().send_mail(doc.buyer_id.id, force_send=True) return doc # ------------------------------------------------------ # Actions -- GitLab