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

[FIX] base: traceback on pdf read error


Create a vendor bill with a specific attachment (on ticket)
Go to vendor bill list view
Select the created bill and another one
Print > Original Bills

Traceback due to unhandled ValueError on pdf read

opw-3498898

closes odoo/odoo#135075

Signed-off-by: default avatarJulien Castiaux (juc) <juc@odoo.com>
parent 5239995a
Branches
Tags
No related merge requests found
......@@ -629,7 +629,7 @@ class IrActionsReport(models.Model):
try:
reader = PdfFileReader(stream)
writer.appendPagesFromReader(reader)
except (PdfReadError, TypeError, NotImplementedError):
except (PdfReadError, TypeError, NotImplementedError, ValueError):
raise UserError(_("Odoo is unable to merge the generated PDFs."))
result_stream = io.BytesIO()
streams.append(result_stream)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment