fix: Tree filter fixes for erpnext dimensions

This commit is contained in:
deepeshgarg007 2019-07-09 16:56:56 +05:30
parent 6a7969117f
commit 890ea195f3

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')) {