fix: Do not show Project, Cost Center and Accounting Dimension in ref doc
This commit is contained in:
parent
397013ec92
commit
5ea542b08b
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user