fix: Do not show Project, Cost Center and Accounting Dimension in ref doc

This commit is contained in:
deepeshgarg007 2019-07-13 11:39:32 +05:30
parent 397013ec92
commit 5ea542b08b

View File

@ -10,6 +10,14 @@ frappe.ui.form.on('Accounting Dimension', {
});
}
frm.set_query('document_type', () => {
return{
filters: {
name: ['not in', ['Accounting Dimension', 'Project', 'Cost Center']]
}
}
});
let button = frm.doc.disabled ? "Enable" : "Disable";
frm.add_custom_button(__(button), function() {