fix: Incorrect tax template in Sales Invocie via data import

(cherry picked from commit 20f321a88980d231f52702e3d32e122022316152)
This commit is contained in:
Deepesh Garg 2022-02-04 12:01:07 +05:30 committed by mergify-bot
parent 0b9c066ef7
commit 36f4fb0585

View File

@ -74,7 +74,8 @@ class SellingController(StockController):
doctype=self.doctype, company=self.company, doctype=self.doctype, company=self.company,
posting_date=self.get('posting_date'), posting_date=self.get('posting_date'),
fetch_payment_terms_template=fetch_payment_terms_template, fetch_payment_terms_template=fetch_payment_terms_template,
party_address=self.customer_address, shipping_address=self.shipping_address_name) party_address=self.customer_address, shipping_address=self.shipping_address_name,
company_address=self.get('company_address'))
if not self.meta.get_field("sales_team"): if not self.meta.get_field("sales_team"):
party_details.pop("sales_team") party_details.pop("sales_team")
self.update_if_missing(party_details) self.update_if_missing(party_details)