Hi there , I need help in finding what is wrong with the code. When I select two records , it will duplicate the same information into the 2 pages. So If I choose x lines, It will render X line of X pages.
<data>
<xpath expr="/t/t/div" position="inside">
<table class="table o_report_block_table">
<thead>
<tr>
<th>
<span>Name</span>
</th>
</tr>
</thead>
<tbody>
<tr t-foreach="docs" t-as="table_line">
<td>
<span t-field="table_line.display_name"/>
</td>
</tr>
</tbody>
</table>
</xpath>
<xpath expr="/t/t/div/table/thead/tr/th" position="before">
<th>
<span>Date</span>
</th>
</xpath>
<xpath expr="/t/t/div/table/tbody/tr/td" position="before">
<td>
<span t-field="table_line.date"/>
</td>
</xpath>
<xpath expr="/t/t/div/table/thead/tr/th[2]" position="after">
<th>
<span>Display Name</span>
</th>
</xpath>
<xpath expr="/t/t/div/table/tbody/tr/td[2]" position="after">
<td>
<span t-field="table_line.task_id.display_name"/>
</td>
</xpath>
<xpath expr="/t/t/div/table/thead/tr/th[3]" position="after">
<th>
<span>Billable Hours</span>
</th>
</xpath>
<xpath expr="/t/t/div/table/tbody/tr/td[3]" position="after">
<td>
<span t-field="table_line.billable_time"/>
</td>
</xpath>
<xpath expr="/t/t/div/table/thead/tr/th[3]" position="after">
<th>
<span>Non-billable Hours</span>
</th>
</xpath>
<xpath expr="/t/t/div/table/tbody/tr/td[3]" position="after">
<td>
<span t-field="table_line.non_billable_time"/>
</td>
</xpath>
<xpath expr="/t/t/div/table/thead/tr/th[5]" position="after">
<th>
<span>Hours Spent</span>
</th>
</xpath>
<xpath expr="/t/t/div/table/tbody/tr/td[5]" position="after">
<td>
<span t-field="table_line.unit_amount"/>
</td>
</xpath>
</data>