diff --git a/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py b/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py index 03ea39134..cd899c9bf 100644 --- a/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py +++ b/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py @@ -565,7 +565,7 @@ def generate_mail_vals(self): ) mvals.pop("attachment_ids", None) mvals.pop("attachments", None) - mail = self.env["mail.mail"].create(mvals) + mail = self.env["mail.mail"].sudo().create(mvals) inv_report = self.env["ir.actions.report"]._get_report_from_name( "account.report_invoice_with_payments" )