mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
get_query to server side
This commit is contained in:
@@ -132,7 +132,9 @@ cur_frm.fields_dict['master_name'].get_query = function(doc) {
|
||||
|
||||
cur_frm.fields_dict['parent_account'].get_query = function(doc) {
|
||||
return {
|
||||
query: "accounts.doctype.account.account.get_parent_account",
|
||||
filters: { "company": doc.company}
|
||||
filters: {
|
||||
"group_or_ledger": "Group",
|
||||
"company": doc.company
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user