diff options
| author | qho <qho@odoo.com> | 2020-04-28 12:30:15 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-04-30 12:53:04 +0000 |
| commit | f1fcc805742c7cf3c125afd98c74a81340b67c67 (patch) | |
| tree | f8d4bfef223ca765f065f470c5cafbf5c061813c /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 4566cf2e57db887b4e3b9d9d2b3e1e62e4a9b67a (diff) | |
[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: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
