Merge pull request #51395 from frappe/mergify/bp/version-15-hotfix/pr-51341

fix(stock): remove item image to avoid setting the image of previous item (backport #51341)
This commit is contained in:
rohitwaghchaure
2025-12-31 11:04:29 +05:30
committed by GitHub

View File

@@ -914,6 +914,9 @@ frappe.ui.form.on("Stock Entry Detail", {
item_code(frm, cdt, cdn) {
var d = locals[cdt][cdn];
// since some items may not have image, so empty the image field to avoid setting the image of previous item
d.image = "";
if (d.item_code) {
var args = {
item_code: d.item_code,