diff --git a/report_wkhtmltopdf_param/__manifest__.py b/report_wkhtmltopdf_param/__manifest__.py
index bd0639be3..468883fc3 100644
--- a/report_wkhtmltopdf_param/__manifest__.py
+++ b/report_wkhtmltopdf_param/__manifest__.py
@@ -10,18 +10,11 @@
Add new parameters for a paper format to be used by wkhtmltopdf
command as arguments.
""",
- "author": "Avoin.Systems,"
- "Eficent,"
- "Odoo Community Association (OCA)",
+ "author": "Avoin.Systems," "Eficent," "Odoo Community Association (OCA)",
"website": "https://avoin.systems",
"category": "Technical Settings",
- "depends": [
- "web",
- ],
- "data": [
- "security/ir.model.access.csv",
- "views/paperformat.xml",
- ],
+ "depends": ["web",],
+ "data": ["security/ir.model.access.csv", "views/paperformat.xml",],
"installable": True,
"auto_install": False,
"application": False,
diff --git a/report_wkhtmltopdf_param/models/report.py b/report_wkhtmltopdf_param/models/report.py
index 82f318e6b..8bf8f5e9e 100644
--- a/report_wkhtmltopdf_param/models/report.py
+++ b/report_wkhtmltopdf_param/models/report.py
@@ -6,21 +6,19 @@ from odoo import api, models
class IrActionsReport(models.Model):
- _inherit = 'ir.actions.report'
+ _inherit = "ir.actions.report"
@api.model
def _build_wkhtmltopdf_args(
- self,
- paperformat_id,
- landscape,
- specific_paperformat_args=None,
- set_viewport_size=False):
+ self,
+ paperformat_id,
+ landscape,
+ specific_paperformat_args=None,
+ set_viewport_size=False,
+ ):
# noinspection PyUnresolvedReferences,PyProtectedMember
command_args = super(IrActionsReport, self)._build_wkhtmltopdf_args(
- paperformat_id,
- landscape,
- specific_paperformat_args,
- set_viewport_size
+ paperformat_id, landscape, specific_paperformat_args, set_viewport_size
)
for param in paperformat_id.custom_params:
diff --git a/report_wkhtmltopdf_param/models/report_paperformat.py b/report_wkhtmltopdf_param/models/report_paperformat.py
index 20846771c..65c15189a 100644
--- a/report_wkhtmltopdf_param/models/report_paperformat.py
+++ b/report_wkhtmltopdf_param/models/report_paperformat.py
@@ -2,25 +2,25 @@
# Copyright 2017 Eficent Business and IT Consulting Services, S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-from odoo import api, fields, models, _
-from odoo.exceptions import ValidationError
import logging
+from odoo import _, api, fields, models
+from odoo.exceptions import ValidationError
+
_logger = logging.getLogger(__name__)
class Paper(models.Model):
- _inherit = 'report.paperformat'
+ _inherit = "report.paperformat"
custom_params = fields.One2many(
- 'report.paperformat.parameter',
- 'paperformat_id',
- 'Custom Parameters',
- help='Custom Parameters passed forward as wkhtmltopdf '
- 'command arguments'
+ "report.paperformat.parameter",
+ "paperformat_id",
+ "Custom Parameters",
+ help="Custom Parameters passed forward as wkhtmltopdf " "command arguments",
)
- @api.constrains('custom_params')
+ @api.constrains("custom_params")
def _check_recursion(self):
for paperformat in self:
sample_html = """
@@ -33,11 +33,12 @@ class Paper(models.Model):