mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
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