Gitiles
Code Review
Sign In
git.clicks.codes
/
Clicks
/
Forks
/
ERPNext
/
e290fe0721a2db994171e0be5a98d7fce272a3c7
/
.
/
erpnext
/
non_profit
/
utils.py
blob: 47ea5f5783275369802fb4520a204286531e36d9 [
file
] [
log
] [
blame
]
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