odoo-metatroncube/addons/mcs_simple_payroll/reports/salary_revision_letter.xml
2026-08-30 01:31:46 -04:00

81 lines
3.8 KiB
XML

<odoo>
<record id="action_report_salary_revision_letter" model="ir.actions.report">
<field name="name">Salary Revision Letter</field>
<field name="model">hr.contract</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">mcs_simple_payroll.report_salary_revision_letter</field>
<field name="report_file">mcs_simple_payroll.report_salary_revision_letter</field>
<field name="binding_model_id" ref="hr_contract.model_hr_contract"/>
<field name="binding_type">report</field>
<field name="attachment_use">True</field>
<field name="attachment">'Salary Revision Letter - %s - %s' % (object.employee_id.name, object.date_start)</field>
<field name="print_report_name">'Salary Revision Letter - %s - %s' % (object.employee_id.name, object.date_start)</field>
</record>
<template id="report_salary_revision_letter">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="web.external_layout">
<div class="page">
<h2>Salary Revision Letter</h2>
<p>
<strong>Date:</strong>
<span t-field="o.mcs_salary_revision_sent_date"/>
</p>
<p>
<strong>Employee:</strong>
<span t-field="o.employee_id.name"/>
</p>
<p>
<strong>Designation:</strong>
<span t-field="o.employee_id.job_title"/>
</p>
<p>
<strong>Company:</strong>
<span t-field="o.company_id.name"/>
</p>
<p>Dear <span t-field="o.employee_id.name"/>,</p>
<p>
This letter confirms the revision of your monthly salary to
<strong>
<span t-esc="o.wage" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</strong>,
effective
<strong><span t-field="o.date_start"/></strong>.
</p>
<p>
This salary will be processed through the MCS Simple Monthly Payroll structure.
No statutory tax, PF, ESI, or similar deductions are applied in this structure unless
the company separately registers for those obligations or is legally required to apply them.
</p>
<p>
All other employment terms remain unchanged unless separately communicated in writing.
</p>
<p>
Please acknowledge acceptance by signing below.
</p>
<table class="table table-sm mt-5">
<tr>
<td style="width: 50%; padding-top: 60px;">
<strong>For <span t-field="o.company_id.name"/></strong><br/>
Authorized Signatory
</td>
<td style="width: 50%; padding-top: 60px;">
<strong>Employee Acceptance</strong><br/>
<span t-field="o.employee_id.name"/>
</td>
</tr>
</table>
</div>
</t>
</t>
</t>
</template>
</odoo>