feat: Adding Item name in update item dialog box

(cherry picked from commit e6133ad6d4)
This commit is contained in:
Nishka Gosalia
2026-01-12 17:06:49 +05:30
committed by Mergify
parent adc9dc82ca
commit 1da8ed202b

View File

@@ -735,6 +735,7 @@ erpnext.utils.update_child_items = function (opts) {
fieldname: "item_name", fieldname: "item_name",
label: __("Item Name"), label: __("Item Name"),
read_only: 1, read_only: 1,
in_list_view: 1,
}, },
{ {
fieldtype: "Link", fieldtype: "Link",
@@ -792,7 +793,7 @@ erpnext.utils.update_child_items = function (opts) {
]; ];
if (frm.doc.doctype == "Sales Order" || frm.doc.doctype == "Purchase Order") { if (frm.doc.doctype == "Sales Order" || frm.doc.doctype == "Purchase Order") {
fields.splice(2, 0, { fields.splice(3, 0, {
fieldtype: "Date", fieldtype: "Date",
fieldname: frm.doc.doctype == "Sales Order" ? "delivery_date" : "schedule_date", fieldname: frm.doc.doctype == "Sales Order" ? "delivery_date" : "schedule_date",
in_list_view: 1, in_list_view: 1,
@@ -800,7 +801,7 @@ erpnext.utils.update_child_items = function (opts) {
default: frm.doc.doctype == "Sales Order" ? frm.doc.delivery_date : frm.doc.schedule_date, default: frm.doc.doctype == "Sales Order" ? frm.doc.delivery_date : frm.doc.schedule_date,
reqd: 1, reqd: 1,
}); });
fields.splice(3, 0, { fields.splice(4, 0, {
fieldtype: "Float", fieldtype: "Float",
fieldname: "conversion_factor", fieldname: "conversion_factor",
label: __("Conversion Factor"), label: __("Conversion Factor"),