Auto Email report limit can be set in site_config (#4935)
- Resolves #4934 - Set max_reports_per_user in site_config to an integer
This commit is contained in:
parent
473d3eb6be
commit
873a85ca0e
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue