mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix(Asset Repair): Fix Sider issues
This commit is contained in:
@@ -32,19 +32,19 @@ frappe.ui.form.on('Asset Repair', {
|
|||||||
});
|
});
|
||||||
|
|
||||||
cur_frm.fields_dict.cost_center.get_query = function(doc) {
|
cur_frm.fields_dict.cost_center.get_query = function(doc) {
|
||||||
return{
|
return {
|
||||||
filters:{
|
filters: {
|
||||||
'is_group': 0,
|
'is_group': 0,
|
||||||
'company': doc.company
|
'company': doc.company
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
cur_frm.fields_dict.project.get_query = function(doc) {
|
cur_frm.fields_dict.project.get_query = function(doc) {
|
||||||
return{
|
return {
|
||||||
filters:{
|
filters: {
|
||||||
'is_group': 0,
|
'is_group': 0,
|
||||||
'company': doc.company
|
'company': doc.company
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
Reference in New Issue
Block a user