diff --git a/easy_my_coop/models/account_invoice.py b/easy_my_coop/models/account_invoice.py index ea04e40..028575d 100644 --- a/easy_my_coop/models/account_invoice.py +++ b/easy_my_coop/models/account_invoice.py @@ -119,7 +119,7 @@ class account_invoice(models.Model): certificate_email_template = line.product_id.mail_template # we send the email with the certificate in attachment - certificate_email_template.send_mail(self.partner_id.id, False) + certificate_email_template.sudo().send_mail(self.partner_id.id, False) if self.company_id.create_user: self.create_user(self.partner_id)