mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 23:31:20 +00:00
fix: revert changes in employee descendants query
This commit is contained in:
@@ -476,14 +476,13 @@ def get_employee_emails(employee_list):
|
|||||||
return employee_emails
|
return employee_emails
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_children(doctype, parent=None, company=None, is_root=False, is_tree=False, fields=None):
|
def get_children(doctype, parent=None, company=None, is_root=False, is_tree=False):
|
||||||
|
|
||||||
filters = [['status', '!=', 'Left']]
|
filters = [['status', '!=', 'Left']]
|
||||||
if company and company != 'All Companies':
|
if company and company != 'All Companies':
|
||||||
filters.append(['company', '=', company])
|
filters.append(['company', '=', company])
|
||||||
|
|
||||||
if not fields:
|
fields = ['name as value', 'employee_name as title']
|
||||||
fields = ['name as value', 'employee_name as title']
|
|
||||||
|
|
||||||
if is_root:
|
if is_root:
|
||||||
parent = ''
|
parent = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user