mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[IMP] base_report_to_printer: black, isort, prettier
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user