Skip to content

Commit

Permalink
Merge pull request frappe#418 from tridz-dev/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik authored Oct 21, 2024
2 parents 482c720 + 0d25867 commit 137ca72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crm/fcrm/doctype/crm_deal/crm_deal.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def before_validate(self):
def validate(self):
self.set_primary_contact()
self.set_primary_email_mobile_no()
if self.deal_owner and not self.is_new():
if not self.is_new() and self.has_value_changed("deal_owner") and self.deal_owner:
self.share_with_agent(self.deal_owner)
self.assign_agent(self.deal_owner)
if self.has_value_changed("status"):
Expand Down
2 changes: 1 addition & 1 deletion crm/fcrm/doctype/crm_lead/crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def validate(self):
self.set_lead_name()
self.set_title()
self.validate_email()
if self.lead_owner and not self.is_new():
if not self.is_new() and self.has_value_changed("lead_owner") and self.lead_owner:
self.share_with_agent(self.lead_owner)
self.assign_agent(self.lead_owner)
if self.has_value_changed("status"):
Expand Down

0 comments on commit 137ca72

Please sign in to comment.