fix: Default sales team not getting set (#34284)

This commit is contained in:
Deepesh Garg 2023-03-07 11:41:26 +05:30 committed by GitHub
parent ea8e23384d
commit 7d0199d743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,9 @@ class SellingController(StockController):
)
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: