From 248f8f56876f51c1f18066b53d1b17fe944febeb Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 22 Dec 2011 12:26:36 +0530 Subject: [PATCH] Update on previous commit: calls on_update method of email_digest obj for creating a scheduler entry --- erpnext/patches/deploy_email_digest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/patches/deploy_email_digest.py b/erpnext/patches/deploy_email_digest.py index ff60f577b7..02f842c02a 100644 --- a/erpnext/patches/deploy_email_digest.py +++ b/erpnext/patches/deploy_email_digest.py @@ -24,6 +24,7 @@ def enabled_default_email_digest(): Enables the created email digest """ from webnotes.model.doc import Document + from webnotes.model.code import get_obj companies_list = webnotes.conn.sql("SELECT company_name FROM `tabCompany`", as_list=1) for company in companies_list: if company and company[0]: @@ -31,6 +32,9 @@ def enabled_default_email_digest(): if edigest: edigest.enabled = 1 edigest.save() + ed_obj = get_obj(doc=edigest) + ed_obj.on_update() + def create_default_email_digest():