mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 18:21:22 +00:00
Merge pull request #1213 from pdvyas/email-digest-error
fix company email digest patch
This commit is contained in:
@@ -13,11 +13,9 @@ def execute():
|
|||||||
return
|
return
|
||||||
|
|
||||||
# no default company
|
# no default company
|
||||||
company = webnotes.conn.get_default("company")
|
company = webnotes.conn.sql_list("select name from `tabCompany`")
|
||||||
if not company:
|
if company:
|
||||||
company = webnotes.conn.sql_list("select name from `tabCompany`")
|
company = company[0]
|
||||||
if company:
|
|
||||||
company = company[0]
|
|
||||||
if not company:
|
if not company:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user