From ad555c6b9015cb761dfd066a7b32bafad99f8f09 Mon Sep 17 00:00:00 2001 From: s-aga-r Date: Wed, 13 Dec 2023 15:21:47 +0530 Subject: [PATCH] fix(ux): don't override Item Name and Description in MR (cherry picked from commit 726ac6bda1ee3b25c1d62b312d96aa32466ba11e) --- erpnext/stock/doctype/material_request/material_request.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/stock/doctype/material_request/material_request.js b/erpnext/stock/doctype/material_request/material_request.js index 9673a705016b..d90b71a47ad0 100644 --- a/erpnext/stock/doctype/material_request/material_request.js +++ b/erpnext/stock/doctype/material_request/material_request.js @@ -199,9 +199,8 @@ frappe.ui.form.on('Material Request', { get_item_data: function(frm, item, overwrite_warehouse=false) { if (item && !item.item_code) { return; } - frm.call({ + frappe.call({ method: "erpnext.stock.get_item_details.get_item_details", - child: item, args: { args: { item_code: item.item_code,