mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +00:00
fix: set query for training events (#26302)
* fix: set query * fix: whitespace between function name and param Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
This commit is contained in:
@@ -20,11 +20,10 @@ frappe.ui.form.on('Training Event', {
|
|||||||
frappe.set_route("List", "Training Feedback");
|
frappe.set_route("List", "Training Feedback");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
frm.events.set_employee_query(frm);
|
||||||
});
|
},
|
||||||
|
|
||||||
frappe.ui.form.on("Training Event Employee", {
|
set_employee_query: function(frm) {
|
||||||
employee: function (frm) {
|
|
||||||
let emp = [];
|
let emp = [];
|
||||||
for (let d in frm.doc.employees) {
|
for (let d in frm.doc.employees) {
|
||||||
if (frm.doc.employees[d].employee) {
|
if (frm.doc.employees[d].employee) {
|
||||||
@@ -40,3 +39,10 @@ frappe.ui.form.on("Training Event Employee", {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
frappe.ui.form.on("Training Event Employee", {
|
||||||
|
employee: function(frm) {
|
||||||
|
frm.events.set_employee_query(frm);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Employee",
|
"label": "Employee",
|
||||||
|
"no_copy": 1,
|
||||||
"options": "Employee"
|
"options": "Employee"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -68,7 +69,7 @@
|
|||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-05-21 12:41:59.336237",
|
"modified": "2021-07-02 17:20:27.630176",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"name": "Training Event Employee",
|
"name": "Training Event Employee",
|
||||||
|
|||||||
Reference in New Issue
Block a user