Skip to content
Snippets Groups Projects
Commit 36138916 authored by Andrea Grazioso (agr-odoo)'s avatar Andrea Grazioso (agr-odoo)
Browse files

[FIX] l10n_it_edi: fix traceback on fetchmail


When the server execute the job 'Mail: Fetchmail Service'
if it's processed an attachment having a Notes field with None values
the following traceback will occur
AttributeError: 'NoneType' object has no attribute 'split'

//IdentificativoSdI','//DataOraRicezione','//Descrizione','//MessageId','//Note'.
seems to be not mandatory

opw-2277722

closes odoo/odoo#54636

X-original-commit: f96be5eb
Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: default avataragr-odoo <agr-odoo@users.noreply.github.com>
parent 49fc1979
Branches
Tags
No related merge requests found
......@@ -339,8 +339,8 @@ class FetchmailServer(models.Model):
if not elements:
continue
for element in elements:
text = " ".join(element.text.split())
if text:
if element.text:
text = " ".join(element.text.split())
output_str += "<li>%s: %s</li>" % (element.tag, text)
return output_str + "</ul>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment