commit | 5ea542b08b68c6ca990a93af51750ad5a4d95bc4 | [log] [tgz] |
---|---|---|
author | deepeshgarg007 <deepeshgarg6@gmail.com> | Sat Jul 13 11:39:32 2019 +0530 |
committer | deepeshgarg007 <deepeshgarg6@gmail.com> | Sat Jul 13 11:39:32 2019 +0530 |
tree | 8d38e77a2df6b544c610038e1bcd09e73c65d61e | |
parent | 397013ec92d0dafc8716e624051b0f5411a51231 [diff] |
fix: Do not show Project, Cost Center and Accounting Dimension in ref doc
diff --git a/erpnext/accounts/doctype/accounting_dimension/accounting_dimension.js b/erpnext/accounts/doctype/accounting_dimension/accounting_dimension.js index dd20632..8669629 100644 --- a/erpnext/accounts/doctype/accounting_dimension/accounting_dimension.js +++ b/erpnext/accounts/doctype/accounting_dimension/accounting_dimension.js
@@ -10,6 +10,14 @@ }); } + 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() {