mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
[minor] clear Item's introduction section on refresh
This commit is contained in:
@@ -55,6 +55,9 @@ frappe.ui.form.on("Item", {
|
||||
// read only if any stock ledger entry exists
|
||||
erpnext.item.make_dashboard(frm);
|
||||
|
||||
// clear intro
|
||||
frm.set_intro();
|
||||
|
||||
if (frm.doc.has_variants) {
|
||||
frm.set_intro(__("This Item is a Template and cannot be used in transactions. Item attributes will be copied over into the variants unless 'No Copy' is set"), true);
|
||||
frm.add_custom_button(__("Show Variants"), function() {
|
||||
|
||||
Reference in New Issue
Block a user