fix: renamed evaluation and certification buttons

This commit is contained in:
Jannat Patel
2025-03-04 17:38:43 +05:30
parent 6692252df9
commit 4149fa6ce4
2 changed files with 7 additions and 10 deletions

View File

@@ -4,7 +4,7 @@
frappe.ui.form.on("LMS Certificate Evaluation", { frappe.ui.form.on("LMS Certificate Evaluation", {
refresh: function (frm) { refresh: function (frm) {
if (!frm.is_new() && frm.doc.status == "Pass") { if (!frm.is_new() && frm.doc.status == "Pass") {
frm.add_custom_button(__("Create LMS Certificate"), () => { frm.add_custom_button(__("Create Certificate"), () => {
frappe.model.open_mapped_doc({ frappe.model.open_mapped_doc({
method: "lms.lms.doctype.lms_certificate_evaluation.lms_certificate_evaluation.create_lms_certificate", method: "lms.lms.doctype.lms_certificate_evaluation.lms_certificate_evaluation.create_lms_certificate",
frm: frm, frm: frm,

View File

@@ -4,15 +4,12 @@
frappe.ui.form.on("LMS Certificate Request", { frappe.ui.form.on("LMS Certificate Request", {
refresh: function (frm) { refresh: function (frm) {
if (!frm.is_new() && frm.doc.status == "Upcoming") { if (!frm.is_new() && frm.doc.status == "Upcoming") {
frm.add_custom_button( frm.add_custom_button(__("Conduct Evaluation"), () => {
__("Create LMS Certificate Evaluation"), frappe.model.open_mapped_doc({
() => { method: "lms.lms.doctype.lms_certificate_request.lms_certificate_request.create_lms_certificate_evaluation",
frappe.model.open_mapped_doc({ frm: frm,
method: "lms.lms.doctype.lms_certificate_request.lms_certificate_request.create_lms_certificate_evaluation", });
frm: frm, });
});
}
);
} }
if (!frm.doc.google_meet_link && frm.doc.status == "Upcoming") { if (!frm.doc.google_meet_link && frm.doc.status == "Upcoming") {
frm.add_custom_button(__("Generate Google Meet Link"), () => { frm.add_custom_button(__("Generate Google Meet Link"), () => {