set query for department based on company

This commit is contained in:
Zlash65
2018-05-11 16:57:44 +05:30
parent 9a8f5bd6c7
commit 03ad0f2f4a
8 changed files with 112 additions and 29 deletions

View File

@@ -23,6 +23,14 @@ frappe.ui.form.on('Asset', {
}
};
});
frm.set_query("department", function() {
return {
"filters": {
"company": frm.doc.company,
}
};
});
},
refresh: function(frm) {