2026-08-30 01:15:04 -04:00

56 lines
2.6 KiB
XML

<odoo>
<template id="report_payslip_simple" inherit_id="payroll.report_payslip">
<xpath expr="//div[hasclass('page')]" position="replace">
<div class="page">
<h2>Salary Payslip</h2>
<table class="table table-sm table-bordered">
<tr>
<td><strong>Employee</strong></td>
<td><span t-field="o.employee_id"/></td>
<td><strong>Job Title</strong></td>
<td><span t-field="o.employee_id.job_title"/></td>
</tr>
<tr>
<td><strong>Email</strong></td>
<td><span t-field="o.employee_id.work_email"/></td>
<td><strong>Payslip Ref</strong></td>
<td><span t-field="o.number"/></td>
</tr>
<tr>
<td><strong>Period From</strong></td>
<td><span t-field="o.date_from"/></td>
<td><strong>Period To</strong></td>
<td><span t-field="o.date_to"/></td>
</tr>
<tr>
<td><strong>Structure</strong></td>
<td><span t-field="o.struct_id"/></td>
<td><strong>Bank Account</strong></td>
<td><span t-field="o.employee_id.bank_account_id"/></td>
</tr>
</table>
<table class="table table-sm table-bordered">
<thead>
<tr>
<th>Description</th>
<th class="text-end">Amount</th>
</tr>
</thead>
<tbody>
<tr t-foreach="o.line_ids.filtered(lambda l: l.appears_on_payslip and l.amount != 0)" t-as="line">
<td><span t-field="line.name"/></td>
<td class="text-end">
<span t-esc="line.total" t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>
</td>
</tr>
</tbody>
</table>
<p>This payslip is generated for internal salary processing only. No statutory tax, PF, or ESI deductions are applied in the simple payroll structure.</p>
<p class="text-end"><strong>Authorized signature</strong></p>
</div>
</xpath>
</template>
</odoo>