Get default tax template only if tax template not selected or template is for other company (#12492)

This commit is contained in:
Nabin Hait
2018-01-15 17:45:46 +05:30
committed by GitHub
parent 184491bbbe
commit a2426fcc9e
3 changed files with 19 additions and 5 deletions

View File

@@ -232,7 +232,7 @@ def make_quotation(source_name, target_doc=None):
quotation.conversion_rate = exchange_rate
# get default taxes
taxes = get_default_taxes_and_charges("Sales Taxes and Charges Template", quotation.company)
taxes = get_default_taxes_and_charges("Sales Taxes and Charges Template", company=quotation.company)
if taxes.get('taxes'):
quotation.update(taxes)