diff --git a/addons/account_edi/models/account_edi_format.py b/addons/account_edi/models/account_edi_format.py index b947cc544c7..975f7859148 100644 --- a/addons/account_edi/models/account_edi_format.py +++ b/addons/account_edi/models/account_edi_format.py @@ -385,9 +385,12 @@ class AccountEdiFormat(models.Model): content = base64.b64decode(attachment.with_context(bin_size=False).datas) to_process = [] + # XML attachments received by mail have a 'text/plain' mimetype. + # Therefore, if content start with '