updates to form comment (post on enter) and global defaults
This commit is contained in:
parent
294778a83c
commit
b02744de8f
@ -20,3 +20,15 @@ cur_frm.cscript.validate = function(doc, cdt, cdn) {
|
|||||||
sys_defaults = r.message;
|
sys_defaults = r.message;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cur_frm.fields_dict['default_territory'].get_query = function(doc,cdt,cdn) {
|
||||||
|
return 'SELECT `tabTerritory`.`name`,`tabTerritory`.`parent_territory` FROM `tabTerritory` WHERE `tabTerritory`.`is_group` = "No" AND `tabTerritory`.`docstatus`!= 2 AND `tabTerritory`.%(key)s LIKE "%s" ORDER BY `tabTerritory`.`name` ASC LIMIT 50';
|
||||||
|
}
|
||||||
|
|
||||||
|
cur_frm.fields_dict['default_customer_group'].get_query = function(doc,cdt,cdn) {
|
||||||
|
return 'SELECT `tabCustomer Group`.`name`, `tabCustomer Group`.`parent_customer_group` FROM `tabCustomer Group` WHERE `tabCustomer Group`.`is_group` = "No" AND `tabCustomer Group`.`docstatus`!= 2 AND `tabCustomer Group`.%(key)s LIKE "%s" ORDER BY `tabCustomer Group`.`name` ASC LIMIT 50';
|
||||||
|
}
|
||||||
|
|
||||||
|
cur_frm.fields_dict['default_item_group'].get_query = function(doc,cdt,cdn) {
|
||||||
|
return 'SELECT `tabItem Group`.`name`,`tabItem Group`.`parent_item_group` FROM `tabItem Group` WHERE `tabItem Group`.is_group="No" AND `tabItem Group`.docstatus != 2 AND `tabItem Group`.%(key)s LIKE "%s" LIMIT 50'
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user