fix: Move .format out of translation method
This commit is contained in:
parent
47de77b2b1
commit
41b0cf87e5
1 changed files with 2 additions and 2 deletions
|
|
@ -53,8 +53,8 @@ class AutoEmailReport(Document):
|
|||
""" check if user has select correct report format """
|
||||
valid_report_formats = ["HTML", "XLSX", "CSV"]
|
||||
if self.format not in valid_report_formats:
|
||||
frappe.throw(_("{0} is not a valid report format. Report format should one of the following {1}" \
|
||||
.format(frappe.bold(self.format), frappe.bold(", ".join(valid_report_formats)))))
|
||||
frappe.throw(_("{0} is not a valid report format. Report format should one of the following {1}")
|
||||
.format(frappe.bold(self.format), frappe.bold(", ".join(valid_report_formats))))
|
||||
|
||||
def get_report_content(self):
|
||||
'''Returns file in for the report in given format'''
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue