fix issue when image not saved after attaching (#8957)
This commit is contained in:
parent
29d64cae34
commit
fe05645051
@ -43,7 +43,8 @@ class Lead(SellingController):
|
||||
if self.email_id == self.contact_by:
|
||||
frappe.throw(_("Next Contact By cannot be same as the Lead Email Address"))
|
||||
|
||||
self.image = has_gravatar(self.email_id)
|
||||
if self.is_new() or not self.image:
|
||||
self.image = has_gravatar(self.email_id)
|
||||
|
||||
if self.contact_date and self.contact_date < now():
|
||||
frappe.throw(_("Next Contact Date cannot be in the past"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user