fix: get party details

(cherry picked from commit 5a0aacc0b6)
This commit is contained in:
Nabin Hait
2023-06-06 15:39:22 +05:30
committed by Mergify
parent d82d1597ac
commit c7391c8a0f

View File

@@ -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: