mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
[cleanup] [wip] email digest
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from frappe.email import sendmail_to_system_managers
|
||||
from frappe.utils import get_url_to_form
|
||||
from frappe.utils import get_link_to_form
|
||||
|
||||
def execute():
|
||||
wrong_records = []
|
||||
@@ -15,7 +15,7 @@ def execute():
|
||||
and modified >= '2015-02-17' and docstatus=1""".format(dt))
|
||||
|
||||
if records:
|
||||
records = [get_url_to_form(dt, d) for d in records]
|
||||
records = [get_link_to_form(dt, d) for d in records]
|
||||
wrong_records.append([dt, records])
|
||||
|
||||
if wrong_records:
|
||||
|
||||
6
erpnext/patches/v6_4/email_digest_update.py
Normal file
6
erpnext/patches/v6_4/email_digest_update.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
frappe.reload_doctype("Email Digest")
|
||||
frappe.db.sql("""update `tabEmail Digest` set expense_year_to_date =
|
||||
income_year_to_date""")
|
||||
Reference in New Issue
Block a user