fix: Remove pointless buttons from Payment Order (#28108)

fix: Remove pointless buttons from Payment Order
(cherry picked from commit c9f3ea5fea)

Co-authored-by: Ganga Manoj <ganga.manoj98@gmail.com>
This commit is contained in:
mergify[bot]
2021-10-27 16:16:31 +05:30
committed by GitHub
parent 5867d97e7c
commit 48acb56cb0

View File

@@ -10,6 +10,9 @@ frappe.ui.form.on('Payment Order', {
}
}
});
frm.set_df_property('references', 'cannot_add_rows', true);
frm.set_df_property('references', 'cannot_delete_rows', true);
},
refresh: function(frm) {
if (frm.doc.docstatus == 0) {