mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-26 05:15:20 +00:00
fix: send auto reorder email to all managers in single company setup
This commit is contained in:
@@ -350,6 +350,10 @@ def get_email_list(company):
|
||||
|
||||
|
||||
def get_comapny_wise_users(company):
|
||||
# single company: no explicit permission needed, everyone has access
|
||||
if frappe.db.count("Company") == 1:
|
||||
return []
|
||||
|
||||
companies = [company]
|
||||
|
||||
if parent_company := frappe.db.get_value("Company", company, "parent_company"):
|
||||
|
||||
Reference in New Issue
Block a user