fix(Asset Repair): Filter Warehouse by Company

This commit is contained in:
GangaManoj 2021-06-16 10:48:07 +05:30
parent 96de4fdf1f
commit 9520efb941

View File

@ -41,6 +41,14 @@ cur_frm.fields_dict.cost_center.get_query = function(doc) {
}; };
cur_frm.fields_dict.project.get_query = function(doc) { cur_frm.fields_dict.project.get_query = function(doc) {
return {
filters: {
'company': doc.company
}
};
};
cur_frm.fields_dict.warehouse.get_query = function(doc) {
return { return {
filters: { filters: {
'is_group': 0, 'is_group': 0,