mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
Merge pull request #17959 from deepeshgarg007/dimension-fixes
fix: Is group filter fixes in dimensions
This commit is contained in:
@@ -14,8 +14,12 @@ erpnext.doctypes_with_dimensions.forEach((doctype) => {
|
|||||||
onload: function(frm) {
|
onload: function(frm) {
|
||||||
dimension_filters.then((dimensions) => {
|
dimension_filters.then((dimensions) => {
|
||||||
dimensions.forEach((dimension) => {
|
dimensions.forEach((dimension) => {
|
||||||
frm.set_query(dimension['fieldname'],{
|
frappe.model.with_doctype(dimension['document_type'], () => {
|
||||||
"is_group": 0
|
if (frappe.meta.has_field(dimension['document_type'], 'is_group')) {
|
||||||
|
frm.set_query(dimension['fieldname'], {
|
||||||
|
"is_group": 0
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user