brotherton-erpnext/erpnext/non_profit/utils.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
223 B
Python
Raw Normal View History

2021-09-20 09:30:54 +00:00
import frappe
def get_company():
company = frappe.defaults.get_defaults().company
if company:
return company
else:
company = frappe.get_list("Company", limit=1)
if company:
return company[0].name
return None