Skip to content

Commit

Permalink
fix: Default sales team not getting set (#34284)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 authored Mar 7, 2023
1 parent ea8e233 commit 7d0199d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/controllers/selling_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def set_missing_lead_customer_details(self, for_validate=False):
)
if not self.meta.get_field("sales_team"):
party_details.pop("sales_team")
else:
self.set("sales_team", party_details.get("sales_team"))

self.update_if_missing(party_details)

elif lead:
Expand Down

0 comments on commit 7d0199d

Please sign in to comment.