fix: designation mapping from job applicant to job offer

- group create buttons
This commit is contained in:
Rucha Mahabal 2022-01-29 20:04:40 +05:30
parent 36882f3734
commit 5d85c5a660

View File

@ -21,9 +21,9 @@ frappe.ui.form.on("Job Applicant", {
create_custom_buttons: function(frm) {
if (!frm.doc.__islocal && frm.doc.status !== "Rejected" && frm.doc.status !== "Accepted") {
frm.add_custom_button(__("Create Interview"), function() {
frm.add_custom_button(__("Interview"), function() {
frm.events.create_dialog(frm);
});
}, __("Create"));
}
if (!frm.doc.__islocal) {
@ -40,10 +40,10 @@ frappe.ui.form.on("Job Applicant", {
frappe.route_options = {
"job_applicant": frm.doc.name,
"applicant_name": frm.doc.applicant_name,
"designation": frm.doc.job_opening,
"designation": frm.doc.job_opening || frm.doc.designation,
};
frappe.new_doc("Job Offer");
});
}, __("Create"));
}
}
},