Merge pull request #21667 from surajshetty3416/fix-dashboard

fix: Add accidentally removed function
This commit is contained in:
Shivam Mishra 2020-05-09 17:53:46 +05:30 committed by GitHub
commit 8b31b3ba00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,10 @@ def get_charts():
}
]
def get_account(account_type, company):
accounts = frappe.get_list("Account", filters={"account_type": account_type, "company": company})
if accounts:
return accounts[0].name
def get_company_for_dashboards():
company = frappe.defaults.get_defaults().company