[minor] clear Item's introduction section on refresh
This commit is contained in:
parent
6a8d7a1b91
commit
ac59c2b300
@ -55,6 +55,9 @@ frappe.ui.form.on("Item", {
|
|||||||
// read only if any stock ledger entry exists
|
// read only if any stock ledger entry exists
|
||||||
erpnext.item.make_dashboard(frm);
|
erpnext.item.make_dashboard(frm);
|
||||||
|
|
||||||
|
// clear intro
|
||||||
|
frm.set_intro();
|
||||||
|
|
||||||
if (frm.doc.has_variants) {
|
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.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() {
|
frm.add_custom_button(__("Show Variants"), function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user