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

[FIX] base: fix "Original Bill" when file is image


1. Create an invoice and upload a picture file as the only attachment
2. Try to print "origin bill" for the invoice (From the invoice tree
view select one and click print > origin bill )

An error will raise "PIL.PdfParser.PdfFormatError: trailer end not found".
Fixing by using another BytesIO object as the output.

opw-2244625

closes odoo/odoo#50469

X-original-commit: 378551193d8199cfab13b06a48aa706f420a7823
Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 4566cf2e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment