fix: Remove pointless buttons from Payment Order

fix: Remove pointless buttons from Payment Order
This commit is contained in:
Ganga Manoj 2021-10-27 15:16:38 +05:30 committed by GitHub
parent f24ed6723e
commit c9f3ea5fea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) { refresh: function(frm) {
if (frm.doc.docstatus == 0) { if (frm.doc.docstatus == 0) {