[FIX] report_vat: display tax of selected chart of tax.

The Taxes report gives the possibility to choose a chart of tax.
This chart of tax wasn't respected when printing the report,
all taxes from all chart of taxes of the company were printed.

opw-642362
This commit is contained in:
Denis Ledoux 2015-06-15 15:08:16 +02:00
parent c7c2f5743b
commit 5fc8315e25
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@
</tr>
</thead>
<tbody>
<tr t-foreach="get_lines(data['form']['based_on'], data['form']['company_id'])" t-as="taxline">
<tr t-foreach="get_lines(data['form']['based_on'], data['form']['company_id'], data['form']['chart_tax_id'])" t-as="taxline">
<t t-if="len(taxline['level']) > 5">
<t t-set="style" t-value="'font-weight:normal;'"/>
</t>