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 15:00:54 +05:30
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