Custom Field: Allow Item Group and other not in create doctypes

This commit is contained in:
Anand Doshi 2013-02-27 11:40:30 +05:30
parent 963c49949d
commit eb4f9f3bf1

View file

@ -57,7 +57,6 @@ cur_frm.cscript.label = function(doc){
cur_frm.fields_dict['dt'].get_query = function(doc, dt, dn) {
return 'SELECT name FROM `tabDocType` \
WHERE IFNULL(issingle,0)=0 AND \
IFNULL(in_create, 0)=0 AND \
module != "Core" AND \
name LIKE "%s%%" ORDER BY name ASC LIMIT 50';
}