Skip to content
Browse files

[FIX] l10n_it_edi: do not use inactive mail server

Do not use an inactive mail server to send the requests.


X-original-commit: ecc4759
  • Loading branch information
nim-odoo committed Feb 13, 2020
1 parent f080964 commit 78a483e8a2066b7fe5144935034b4d98439303dc
Showing with 5 additions and 1 deletion.
  1. +5 −1 addons/l10n_it_edi/models/
@@ -255,7 +255,11 @@ def send_pec_mail(self):
allowed_state = ['to_send', 'invalid']

if not self.company_id.l10n_it_mail_pec_server_id or not self.company_id.l10n_it_address_send_fatturapa:
if (
not self.company_id.l10n_it_mail_pec_server_id
or not
or not self.company_id.l10n_it_address_send_fatturapa
body=(_("Error when sending mail with E-Invoice: Your company must have a mail PEC server and must indicate the mail PEC that will send electronic invoice."))

0 comments on commit 78a483e

Please sign in to comment.
You can’t perform that action at this time.