mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-26 21:35:19 +00:00
fix: send auto reorder email to all managers in single company setup
(cherry picked from commit ae119b1c29)
This commit is contained in:
@@ -358,6 +358,10 @@ def get_email_list(company):
|
|||||||
|
|
||||||
|
|
||||||
def get_comapny_wise_users(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]
|
companies = [company]
|
||||||
|
|
||||||
if parent_company := frappe.db.get_value("Company", company, "parent_company"):
|
if parent_company := frappe.db.get_value("Company", company, "parent_company"):
|
||||||
|
|||||||
Reference in New Issue
Block a user