[fix] Wrong company's default tax fetch (#11927)

This commit is contained in:
rohitwaghchaure
2017-12-11 14:52:28 +05:30
committed by Nabin Hait
parent 3fe59b4443
commit 505661b5c0
3 changed files with 17 additions and 8 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")
taxes = get_default_taxes_and_charges("Sales Taxes and Charges Template", quotation.company)
if taxes.get('taxes'):
quotation.update(taxes)