fix(auto_email_report): max_reports_per_user (#6628)

Option to modify the value for max_reports_per_user via the
site_config.json
This commit is contained in:
Ameya Shenoy 2018-12-17 16:07:44 +05:30 committed by Rushabh Mehta
parent be52744453
commit b7bac9cd49

View file

@ -12,7 +12,7 @@ from frappe.utils import now, global_date_format, format_time
from frappe.utils.xlsxutils import make_xlsx
from frappe.utils.csvutils import to_csv
max_reports_per_user = 3
max_reports_per_user = frappe.local.conf.max_reports_per_user or 3
class AutoEmailReport(Document):
def autoname(self):