mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
Merge pull request #55592 from frappe/mergify/bp/version-16-hotfix/pr-55591
fix: item report view (backport #55591)
This commit is contained in:
@@ -33,19 +33,21 @@ frappe.listview_settings["Item"] = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onload: function (listview) {
|
onload: function (listview) {
|
||||||
listview.columns = listview.columns.map((col) => {
|
if (listview.view === "List") {
|
||||||
if (!col.df) return col;
|
listview.columns = listview.columns.map((col) => {
|
||||||
const renames = {
|
if (!col.df) return col;
|
||||||
is_fixed_asset: __("Item Type"),
|
const renames = {
|
||||||
is_sales_item: __("Purpose"),
|
is_fixed_asset: __("Item Type"),
|
||||||
stock_uom: __("UOM"),
|
is_sales_item: __("Purpose"),
|
||||||
};
|
stock_uom: __("UOM"),
|
||||||
if (col.df.fieldname in renames) {
|
};
|
||||||
return { ...col, df: { ...col.df, label: renames[col.df.fieldname] } };
|
if (col.df.fieldname in renames) {
|
||||||
}
|
return { ...col, df: { ...col.df, label: renames[col.df.fieldname] } };
|
||||||
return col;
|
}
|
||||||
});
|
return col;
|
||||||
listview.render_header(true);
|
});
|
||||||
|
listview.render_header(true);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
get_indicator: function (doc) {
|
get_indicator: function (doc) {
|
||||||
|
|||||||
Reference in New Issue
Block a user