[14.0][IMP] base_report_to_printer: Add tests for text documents

This commit is contained in:
Denis Roussel
2021-12-29 09:10:46 +01:00
parent a716e134b9
commit f7dd12d0a6
2 changed files with 27 additions and 1 deletions

View File

@@ -101,7 +101,7 @@ class IrActionsReport(models.Model):
return result
def print_document(self, record_ids, data=None):
""" Print a document, do not return the document file """
"""Print a document, do not return the document file"""
report_type = REPORT_TYPES.get(self.report_type)
if not report_type:
raise exceptions.UserError(