We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d63c837 commit d67e9dfCopy full SHA for d67e9df
2 files changed
l10n_it_fatturapa_pec/models/fatturapa_attachment_out.py
@@ -63,7 +63,7 @@ def send_via_pec(self):
63
}
64
)
65
66
- mail = self.env["mail.mail"].create(
+ mail = self.env["mail.mail"].sudo().create(
67
{
68
"mail_message_id": mail_message.id,
69
"body_html": mail_message.body,
l10n_it_fatturapa_pec/models/sdi.py
@@ -85,7 +85,7 @@ def check_email_validity(self):
85
86
87
def check_first_pec_sending(self):
88
- sdi_address = self.env["ir.config_parameter"].get_param("sdi.pec.first.address")
+ sdi_address = self.env["ir.config_parameter"].sudo().get_param("sdi.pec.first.address")
89
if not self.first_invoice_sent:
90
if self.email_exchange_system != sdi_address:
91
raise exceptions.UserError(
0 commit comments