mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
19 lines
1003 B
XML
19 lines
1003 B
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<template id="report_payslip_inherit" name="Payslip YTD" inherit_id="hr_payroll.report_payslip">
|
|
<!-- Add YTD to the table head-->
|
|
<xpath expr="//table[2]/thead/tr//th[last()]" position="after">
|
|
<th>YTD Quantity</th>
|
|
<th>YTD Amount</th>
|
|
<th>YTD Total</th>
|
|
</xpath>
|
|
|
|
<!-- Add YTD table data-->
|
|
<xpath expr="//table[2]/tbody//td[last()]" position="after">
|
|
<t t-set="ytd" t-value="o.ytd(line.code, allow_draft=True)"/>
|
|
<td><span t-esc="ytd.get('quantity', 0.0)"/></td>
|
|
<td><span t-esc="ytd.get('amount', 0.0)" t-options="{"widget": "monetary", "display_currency": o.company_id.currency_id}"/></td>
|
|
<td><span t-esc="ytd.get('total', 0.0)" t-options="{"widget": "monetary", "display_currency": o.company_id.currency_id}"/></td>
|
|
</xpath>
|
|
</template>
|
|
</odoo> |