Closed majubewi closed 3 years ago
Possible for Full Edit in trip.js
frappe.ui.form.on('Trip', {
setup: function(frm){
},
onload: function(frm) {
if(frm.is_new()){
frappe.model.get_value('User',user,["full_name"], function(full_name){
frappe.model.get_value('Employee',{'employee_name':full_name.full_name},["name"],function(emp_name){
frm.set_value("employee",emp_name.name);
});
});
}
}
});
Nontrivial for Quick Entry
https://discuss.erpnext.com/t/how-to-run-a-custom-script-in-quick-entry/39122/7
@canlann ich glaube das gibt'S auch rigendwas in dem Option Feld wie "Active User" oder so...das ist aber auch im Moment nicht so arg wichtig.
In the Quickentry the Employee field should be preselected via the currently logged in user.