mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
fix issue when image not saved after attaching (#8957)
This commit is contained in:
committed by
Nabin Hait
parent
29d64cae34
commit
fe05645051
@@ -43,6 +43,7 @@ class Lead(SellingController):
|
|||||||
if self.email_id == self.contact_by:
|
if self.email_id == self.contact_by:
|
||||||
frappe.throw(_("Next Contact By cannot be same as the Lead Email Address"))
|
frappe.throw(_("Next Contact By cannot be same as the Lead Email Address"))
|
||||||
|
|
||||||
|
if self.is_new() or not self.image:
|
||||||
self.image = has_gravatar(self.email_id)
|
self.image = has_gravatar(self.email_id)
|
||||||
|
|
||||||
if self.contact_date and self.contact_date < now():
|
if self.contact_date and self.contact_date < now():
|
||||||
|
|||||||
Reference in New Issue
Block a user