fix: send auto reorder email to all managers in single company setup

(cherry picked from commit ae119b1c29)
This commit is contained in:
Shllokkk
2026-08-25 15:44:03 +05:30
committed by Mergify
parent c9550023f8
commit ac1c6921da

View File

@@ -358,6 +358,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"):