From c7391c8a0fd6f2dfd39f832e2497cc5cbee0351d Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 6 Jun 2023 15:39:22 +0530 Subject: [PATCH] fix: get party details (cherry picked from commit 5a0aacc0b6e7a04da18044b1bee1256f2eb2f1d4) --- erpnext/controllers/selling_controller.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py index 3d47ee797da..ef289ff6a67 100644 --- a/erpnext/controllers/selling_controller.py +++ b/erpnext/controllers/selling_controller.py @@ -43,7 +43,6 @@ class SellingController(StockController): self.validate_auto_repeat_subscription_dates() def set_missing_values(self, for_validate=False): - super(SellingController, self).set_missing_values(for_validate) # set contact and address details for customer, if they are not mentioned @@ -62,7 +61,7 @@ class SellingController(StockController): elif self.doctype == "Quotation" and self.party_name: if self.quotation_to == "Customer": customer = self.party_name - else: + elif self.quotation_to == "Lead": lead = self.party_name if customer: