diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2019-08-16 09:05:58 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2019-08-16 09:23:00 +0000 |
| commit | 364f01b447a1ee4967a804139142bd7344399a9d (patch) | |
| tree | e43b1ab6792a343ee323a22ba2700d9c05a81743 /addons/mail/static/src/js/models/threads/document_thread.js | |
| parent | 6b6d290a5b647c9476046ca41591e41782e881f6 (diff) | |
[FIX] stock_picking_batch: blurry barcode in report
From the Inventory (stock) application go to Operations>"Batch Pickings"
Create or open an existing Batch Picking and click on "Print".
A report will be generated containing the barcode associated with the
operations. The barcode cannot be read from a barcode scanner because
it's too blurry (probably because of the low quality it contains
an unnatural greyscale).
When this report is generated from the template, a request to generate
the barcode is sent to the controller, which invoke the procedure to
create the png image on the fly with a set of parameters embedded into
the request.
If the width and height parameters are too low the result is a low
quality image, so the solution is to pass higher parameters and then
resize the image via "style" attributes.
Note that the same solution is applied in multiple templates.
opw-2045949
closes odoo/odoo#35752
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/mail/static/src/js/models/threads/document_thread.js')
0 files changed, 0 insertions, 0 deletions
