fix: inventory dimension filter's label not showing in the reort

This commit is contained in:
Rohit Waghchaure
2022-09-07 14:40:18 +05:30
parent c313c37006
commit 2d2eef6b29

View File

@@ -226,7 +226,7 @@ $.extend(erpnext.utils, {
if (!found) { if (!found) {
filters.splice(index, 0, { filters.splice(index, 0, {
"fieldname": dimension["fieldname"], "fieldname": dimension["fieldname"],
"label": __(dimension["label"]), "label": __(dimension["doctype"]),
"fieldtype": "MultiSelectList", "fieldtype": "MultiSelectList",
get_data: function(txt) { get_data: function(txt) {
return frappe.db.get_link_options(dimension["doctype"], txt); return frappe.db.get_link_options(dimension["doctype"], txt);