Report Wkhtmltopdf Param
report_wkhtmltopdf_param · OCA/reporting-engine
-
Security25/25No findings
-
Activity20/25Last human commit 12 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 11 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module allows you to add new parameters for a paper format which are then forwarded to wkhtmltopdf command as arguments. To display the arguments that wkhtmltopdf accepts go to your command line and type 'wkhtmltopdf -H'.
A commonly used parameter in Odoo is --disable-smart-shrinking, that will disable the automatic resizing of the PDF when converting. This is important when you intend to have a layout that conforms to certain alignment. It is very common whenever you need to conform the PDF to a predefined layoyut (e.g. checks, official forms,...).
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
paperformat_view_form_custom |
paperformat with custom parameters | report.paperformat | form | Inherits base.paperformat_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
No new fields.
Public methods (0)No public methods.
-
custom_paramsOne2many → report.paperformat.parameterhelp='Custom Parameters passed forward as wkhtmltopdf command arguments' args: 'report.paperformat.parameter', 'paperformat_id', 'Custom Parameters'
No public methods.
-
nameCharhelp='The command argument name. Remember to add prefix -- or -'required=True -
paperformat_idMany2one → report.paperformatrequired=True args: 'report.paperformat', 'Paper Format' -
valueChar
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…