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", {
refresh: function (frm) {
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({
method: "lms.lms.doctype.lms_certificate_evaluation.lms_certificate_evaluation.create_lms_certificate",
frm: frm,

View File

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