deleted and disabled users excluded in applicable to and approver link fields
This commit is contained in:
parent
b0fd0b3615
commit
bf0d92e125
@ -72,7 +72,7 @@ cur_frm.cscript.transaction = function(doc,cdt,cdn){
|
|||||||
// System User Trigger
|
// System User Trigger
|
||||||
// -------------------
|
// -------------------
|
||||||
cur_frm.fields_dict['system_user'].get_query = function(doc) {
|
cur_frm.fields_dict['system_user'].get_query = function(doc) {
|
||||||
return 'SELECT tabProfile.name FROM tabProfile WHERE tabProfile.name not in ("Administrator","Guest") AND tabProfile.%(key)s LIKE "%s" LIMIT 50'
|
return 'SELECT tabProfile.name FROM tabProfile WHERE tabProfile.name not in ("Administrator","Guest") AND tabProfile.docstatus != 2 AND tabProfile.enabled = 1 AND tabProfile.%(key)s LIKE "%s" LIMIT 50'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ cur_frm.fields_dict['system_role'].get_query = function(doc) {
|
|||||||
// Approving User Trigger
|
// Approving User Trigger
|
||||||
// -----------------------
|
// -----------------------
|
||||||
cur_frm.fields_dict['approving_user'].get_query = function(doc) {
|
cur_frm.fields_dict['approving_user'].get_query = function(doc) {
|
||||||
return 'SELECT tabProfile.name FROM tabProfile WHERE tabProfile.name not in ("Administrator","Guest") AND tabProfile.%(key)s LIKE "%s" LIMIT 50'
|
return 'SELECT tabProfile.name FROM tabProfile WHERE tabProfile.name not in ("Administrator","Guest") AND tabProfile.docstatus != 2 AND tabProfile.enabled = 1 AND tabProfile.%(key)s LIKE "%s" LIMIT 50'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user