mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
fix: Tree filter fixes for erpnext dimensions
This commit is contained in:
@@ -12,7 +12,7 @@ erpnext.dimension_filters = erpnext.get_dimension_filters();
|
|||||||
erpnext.doctypes_with_dimensions.forEach((doctype) => {
|
erpnext.doctypes_with_dimensions.forEach((doctype) => {
|
||||||
frappe.ui.form.on(doctype, {
|
frappe.ui.form.on(doctype, {
|
||||||
onload: function(frm) {
|
onload: function(frm) {
|
||||||
dimension_filters.then((dimensions) => {
|
erpnext.dimension_filters.then((dimensions) => {
|
||||||
dimensions.forEach((dimension) => {
|
dimensions.forEach((dimension) => {
|
||||||
frappe.model.with_doctype(dimension['document_type'], () => {
|
frappe.model.with_doctype(dimension['document_type'], () => {
|
||||||
if (frappe.meta.has_field(dimension['document_type'], 'is_group')) {
|
if (frappe.meta.has_field(dimension['document_type'], 'is_group')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user