summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2018-12-12 10:23:40 +0000
committerXavier Morel <xmo@odoo.com>2020-03-23 14:41:52 +0000
commit43f10313c646aac24d057dbe90eef747277ec122 (patch)
treea5a86abfc03a97295f81bde8eb2e3d4ed7e69fb2 /addons/web/static/src/js/fields/basic_fields.js
parent2573d681dd64fde0f36d3ca2cda32ab21e0a62aa (diff)
[IMP] *: automatically brand PDFs (from PyPDF2) as Odoo
To avoid having to fixup half a dozen places where we're creating PDF writers, and possibly ending up with new ill-configured writers in the future, patch PyPDF2's own writer with a subclass setting /Creator and /Producer. Note that this will not affect non-post-processed PDFs generated by wkhtmltopdf. wkhtmltopdf does not allow setting these properties[0][1], so to fix this issue we'd have to alter _run_wkhtmltopdf to pass the result through PyPDF2 in order to alter its metadata. [0] https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2000 [1] https://bugreports.qt.io/browse/QTBUG-44451 closes odoo/odoo#29460 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions