Merge pull request #18207 from deepeshgarg007/dimension-filter-fix

fix: Tree filter fixes for accounting dimensions
This commit is contained in:
Deepesh Garg 2019-07-09 17:02:43 +05:30 committed by GitHub
commit d1be5d0f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ erpnext.dimension_filters = erpnext.get_dimension_filters();
erpnext.doctypes_with_dimensions.forEach((doctype) => {
frappe.ui.form.on(doctype, {
onload: function(frm) {
dimension_filters.then((dimensions) => {
erpnext.dimension_filters.then((dimensions) => {
dimensions.forEach((dimension) => {
frappe.model.with_doctype(dimension['document_type'], () => {
if (frappe.meta.has_field(dimension['document_type'], 'is_group')) {