Update erpnext/controllers/selling_controller.py

Co-authored-by: Sagar Vora <sagar@resilient.tech>
This commit is contained in:
Deepesh Garg 2020-09-20 20:04:10 +05:30 committed by GitHub
parent fa98e81f0b
commit c152b92ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ class SellingController(StockController):
party_details = _get_party_details(customer,
ignore_permissions=self.flags.ignore_permissions,
doctype=self.doctype, company=self.company,
posting_date=self.posting_date if hasattr(self, 'posting_date') else None,
posting_date=self.get('posting_date'),
fetch_payment_terms_template=fetch_payment_terms_template,
party_address=self.customer_address, shipping_address=self.shipping_address_name)
if not self.meta.get_field("sales_team"):