commit | 3af46cc6cccc100906d975a1babcfb46e89577cf | [log] [tgz] |
---|---|---|
author | Rucha Mahabal <ruchamahabal2@gmail.com> | Thu Jan 21 11:59:34 2021 +0530 |
committer | Rucha Mahabal <ruchamahabal2@gmail.com> | Thu Jan 21 11:59:34 2021 +0530 |
tree | 3ecda13cdf8abdb70903bc0f6538505f4d2f2a49 | |
parent | 4284ad880bd46fb2c061085a5b8a73229a87e513 [diff] |
fix: show custom buttons after save
diff --git a/erpnext/non_profit/doctype/membership/membership.js b/erpnext/non_profit/doctype/membership/membership.js index 99aabf3..573ac33 100644 --- a/erpnext/non_profit/doctype/membership/membership.js +++ b/erpnext/non_profit/doctype/membership/membership.js
@@ -9,6 +9,9 @@ }, refresh: function(frm) { + if (frm.doc.__islocal) + return; + !frm.doc.invoice && frm.add_custom_button("Generate Invoice", () => { frm.call({ doc: frm.doc,