commit | 7d0199d743c7861e883cadd582c036cc8d9b0a62 | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Tue Mar 07 11:41:26 2023 +0530 |
committer | GitHub <noreply@github.com> | Tue Mar 07 11:41:26 2023 +0530 |
tree | c14893641ce83a3c5862d339c4917c7f53e44433 | |
parent | ea8e23384d3029569691e266700e3ebcdff6e17b [diff] |
fix: Default sales team not getting set (#34284)
diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py index 8b4d28b..e1f5062 100644 --- a/erpnext/controllers/selling_controller.py +++ b/erpnext/controllers/selling_controller.py
@@ -84,6 +84,9 @@ ) 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: