summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/account_edi/models/account_edi_format.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account_edi/models/account_edi_format.py b/addons/account_edi/models/account_edi_format.py
index d22519e4bf2..f9f4d07c322 100644
--- a/addons/account_edi/models/account_edi_format.py
+++ b/addons/account_edi/models/account_edi_format.py
@@ -231,7 +231,7 @@ class AccountEdiFormat(models.Model):
if attachments:
# Add the attachments to the pdf file
reader_buffer = io.BytesIO(pdf_content)
- reader = OdooPdfFileReader(reader_buffer)
+ reader = OdooPdfFileReader(reader_buffer, strict=False)
writer = OdooPdfFileWriter()
writer.cloneReaderDocumentRoot(reader)
for vals in attachments:
@@ -289,7 +289,7 @@ class AccountEdiFormat(models.Model):
to_process = []
try:
buffer = io.BytesIO(content)
- pdf_reader = OdooPdfFileReader(buffer)
+ pdf_reader = OdooPdfFileReader(buffer, strict=False)
except Exception as e:
# Malformed pdf
_logger.exception("Error when reading the pdf: %s" % e)