mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
[fix] validate preferred email if set in employee.py
This commit is contained in:
@@ -157,7 +157,7 @@ class Employee(Document):
|
|||||||
delete_events(self.doctype, self.name)
|
delete_events(self.doctype, self.name)
|
||||||
|
|
||||||
def validate_prefered_email(self):
|
def validate_prefered_email(self):
|
||||||
if not self.get(scrub(self.prefered_contact_email)):
|
if self.prefered_contact_email and not self.get(scrub(self.prefered_contact_email)):
|
||||||
frappe.msgprint(_("Please enter " + self.prefered_contact_email))
|
frappe.msgprint(_("Please enter " + self.prefered_contact_email))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user