Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com> fix: don't attempt to set gender from salutation (#40997)
This commit is contained in:
@@ -18,18 +18,6 @@ erpnext.setup.EmployeeController = class EmployeeController extends frappe.ui.fo
|
||||
refresh() {
|
||||
erpnext.toggle_naming_series();
|
||||
}
|
||||
|
||||
salutation() {
|
||||
if (this.frm.doc.salutation) {
|
||||
this.frm.set_value(
|
||||
"gender",
|
||||
{
|
||||
Mr: "Male",
|
||||
Ms: "Female",
|
||||
}[this.frm.doc.salutation]
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
frappe.ui.form.on("Employee", {
|
||||
|
||||
Reference in New Issue
Block a user