How do i write a code to send auto email reports weekly?? Please help.I am new erpnext.
It’s configurable. Just select report, frequency and recipient.
Right now I am sending the report manually every friday and saturday. But i need to send the auto generated email reports on every friday and saturday. For this i need to write a code. The steps which you told don’t work for auto email reports weekly as told by my colleagues.
@Chinjuprotech you need to write a script report for the same as per your requirements.
@Ashutosh_Halape Script report is working fine. Only issue is not sending via email automatically on Daily basis , what should i do for that
Check whether scheduler is enabled for site.
bench --site site-name doctor
If its disabled, then use
bench --site site-name enable-scheduler to enable it
Error Log for more details
Getting this error
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 26, in cli
File “/home/frappe/.bench/bench/cli.py”, line 89, in frappe_cmd
OSError: [Errno 2] No such file or directory: ‘./sites’