fix: Tree filter fixes for erpnext dimensions
This commit is contained in:
parent
6a7969117f
commit
890ea195f3
@ -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')) {
|
||||
|
Loading…
Reference in New Issue
Block a user