Skip to content

Commit

Permalink
fix: link to navigate to item template from variant (#27440)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchamahabal authored Sep 11, 2021
1 parent 7843c3d commit 6f6e390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/item/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ frappe.ui.form.on("Item", {
}
if (frm.doc.variant_of) {
frm.set_intro(__('This Item is a Variant of {0} (Template).',
[`<a href="/app/item/${frm.doc.variant_of}" onclick="location.reload()">${frm.doc.variant_of}</a>`]), true);
[`<a href="#Form/Item/${frm.doc.variant_of}" target="_blank">${frm.doc.variant_of}</a>`]), true);
}

if (frappe.defaults.get_default("item_naming_by")!="Naming Series" || frm.doc.variant_of) {
Expand Down

0 comments on commit 6f6e390

Please sign in to comment.