fix(Asset Repair): Filter Cost Center and Project by Company

This commit is contained in:
GangaManoj 2021-06-16 08:13:36 +05:30
parent 867fd02b2d
commit 17fa121779

View File

@ -30,3 +30,21 @@ frappe.ui.form.on('Asset Repair', {
}
}
});
cur_frm.fields_dict.cost_center.get_query = function(doc) {
return{
filters:{
'is_group': 0,
'company': doc.company
}
}
}
cur_frm.fields_dict.project.get_query = function(doc) {
return{
filters:{
'is_group': 0,
'company': doc.company
}
}
}