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.


closes #45335

Signed-off-by: Nicolas Martinelli (nim) <>
  • Loading branch information
nim-odoo committed Feb 13, 2020
1 parent 5419528 commit ecc4759c03534ccb37ebf9eea202abdf387adca9
Showing with 5 additions and 1 deletion.
  1. +5 −1 addons/l10n_it_edi/models/
@@ -259,7 +259,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 ecc4759

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