mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
fix: show custom buttons after save
This commit is contained in:
@@ -9,6 +9,9 @@ frappe.ui.form.on('Membership', {
|
|||||||
},
|
},
|
||||||
|
|
||||||
refresh: function(frm) {
|
refresh: function(frm) {
|
||||||
|
if (frm.doc.__islocal)
|
||||||
|
return;
|
||||||
|
|
||||||
!frm.doc.invoice && frm.add_custom_button("Generate Invoice", () => {
|
!frm.doc.invoice && frm.add_custom_button("Generate Invoice", () => {
|
||||||
frm.call({
|
frm.call({
|
||||||
doc: frm.doc,
|
doc: frm.doc,
|
||||||
|
|||||||
Reference in New Issue
Block a user