mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
fix: Company query for number cards
(cherry picked from commit 9f963a2ac7)
This commit is contained in:
committed by
mergify-bot
parent
2e7088c29a
commit
5f57f59482
@@ -19,7 +19,7 @@ def get_company():
|
|||||||
else:
|
else:
|
||||||
company = frappe.get_list("Company", limit=1)
|
company = frappe.get_list("Company", limit=1)
|
||||||
if company:
|
if company:
|
||||||
return company.name
|
return company[0].name
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_dashboards():
|
def get_dashboards():
|
||||||
|
|||||||
Reference in New Issue
Block a user