[IMP] base_report_to_printer: black, isort, prettier

This commit is contained in:
Carlos Roca
2021-01-12 09:33:27 +01:00
committed by trisdoan
parent 0700b15211
commit fdcb2ae235
7 changed files with 20 additions and 23 deletions

View File

@@ -38,7 +38,7 @@ class IrActionsReport(models.Model):
@api.model
def print_action_for_report_name(self, report_name):
""" Returns if the action is a direct print or pdf
"""Returns if the action is a direct print or pdf
Called from js
"""
@@ -130,7 +130,7 @@ class IrActionsReport(models.Model):
return res
def render_qweb_pdf(self, res_ids=None, data=None):
""" Generate a PDF and returns it.
"""Generate a PDF and returns it.
If the action configured on the report is server, it prints the
generated document as well.

View File

@@ -122,7 +122,7 @@ class PrintingPrinter(models.Model):
return vals
def print_document(self, report, content, **print_opts):
""" Print a file
"""Print a file
Format could be pdf, qweb-pdf, raw, ...
"""
self.ensure_one()