fix(LMS Batch): add portal web link to form view (#692)

This commit is contained in:
Md Hussain Nagaria
2023-11-27 22:19:07 +05:30
committed by GitHub
parent fd9a638879
commit de60fbb25a

View File

@@ -33,6 +33,10 @@ frappe.ui.form.on("LMS Batch", {
timetable_template: function (frm) {
set_timetable(frm);
},
refresh: (frm) => {
frm.add_web_link(`/batches/details/${frm.doc.name}`, "See on website");
},
});
const set_timetable = (frm) => {