financial statements: show only companies where permission is given
diff --git a/accounts/doctype/mis_control/mis_control.py b/accounts/doctype/mis_control/mis_control.py
index a860c82..953fed0 100644
--- a/accounts/doctype/mis_control/mis_control.py
+++ b/accounts/doctype/mis_control/mis_control.py
@@ -53,11 +53,8 @@
ret['period'] = ['Annual','Half Yearly','Quarterly','Monthly']
# ---- get companies ---------
- res = sql("select name from `tabCompany`")
- for r in res:
- comp.append(r[0])
- #comp.append(r[0] for r in res)
- ret['company'] = comp
+ from accounts.page.accounts_browser.accounts_browser import get_companies
+ ret['company'] = get_companies()
#--- to get fiscal year and start_date of that fiscal year -----
res = sql("select name, year_start_date from `tabFiscal Year`")