diff options
| author | Denis Ledoux <dle@odoo.com> | 2018-11-21 09:12:37 +0000 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2018-11-21 09:30:02 +0000 |
| commit | af476c6949dfe70b2379c41c8ab0b728358e3782 (patch) | |
| tree | 5b1c373901fce6f98bb20136afcff48bb11fde2a /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 1f8788deefc2fd07428695207393ed4d94997216 (diff) | |
[FIX] report: support for wkhtmltopdf 0.12.5
This revision brings the compatibility for our reports
using wkhtmltopdf 0.12.5.
Up to now,
the supported wkhtmltopdf version was 0.12.1.
The goal of this revision is to add the compatibility
to wkhtmltopdf 0.12.5,
while keeping the same exact rendering than in 0.12.1.
There is a behavior change with the `--dpi` parameter,
which no longer has a "zoom" level effect as it did with 0.12.1.
To deal with it, we pass the `--zoom` parameter when
the detected version installed of wkhtmltopdf is after 0.12.2,
with a ratio 96:dpi. 96 being the default dpi of wkhtmltopdf.
This trick allows to render the reports with the exact same
zoom level, whatever the dpi value configured in the reports paperformat.
(at least with dpi values up to 149, after 150, included,
the dpi parameter with wkhtmltopdf 0.12.1 as a weird behavior,
it no longer zoom out)
opw-1907346
closes odoo/odoo#28864
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
