[FIX] account: Printing Account Tax

Steps to reproduce:

-open Accounting / Configuration / Taxes / Tax Codes
-open any Tax Code
-press Print / Account Tax

Bug: QWebException: "chart_tax_id" while evaluating
"get_lines(data['form']['based_on'], data['form']['company_id'], data['form']['chart_tax_id'])"

Closes: #8923

opw:697423
This commit is contained in:
Goffin Simon 2016-12-21 09:39:52 +01:00
parent e8019a23c2
commit a3ee4d1914
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class tax_report(report_sxw.rml_parse, common_report_header):
'based_on': 'invoices',
'company_id': company_id,
'display_detail': False,
'chart_tax_id': self.pool['account.vat.declaration']._get_tax(self.cr, self.uid),
}
}
self.period_ids = []