2026-08-30 02:18:42 -04:00

116 lines
6.2 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">False</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.basic_layout">
<div class="page" style="font-family: Arial, sans-serif; font-size: 13px; line-height: 1.55; color: #111827;">
<div style="display: table; width: 100%; padding-bottom: 16px; margin-bottom: 34px; border-bottom: 1px solid #d1d5db;">
<div style="display: table-cell; width: 76px; vertical-align: middle;">
<img
t-if="o.company_id.logo"
t-att-src="'/web/image/res.company/%s/logo' % o.company_id.id"
style="max-width: 64px; max-height: 64px;"
/>
</div>
<div style="display: table-cell; vertical-align: middle;">
<div style="font-size: 18px; font-weight: 700;">
<span t-field="o.company_id.name"/>
</div>
<div style="font-size: 12px; color: #4b5563; margin-top: 2px;">
<span t-field="o.company_id.email"/>
<t t-if="o.company_id.website">
<span> | </span>
<span t-field="o.company_id.website"/>
</t>
</div>
</div>
</div>
<p style="margin: 0 0 22px 0; text-align: right;">
<strong>Date:</strong>
<span t-field="o.mcs_salary_revision_sent_date"/>
</p>
<p style="margin: 0 0 2px 0;">To,</p>
<p style="margin: 0;">
<strong><span t-field="o.employee_id.name"/></strong>
</p>
<p style="margin: 0 0 22px 0;">
<span t-field="o.employee_id.job_title"/>
</p>
<p style="margin: 0 0 24px 0;">
<strong>Subject: Salary Revision Letter</strong>
</p>
<p>Dear <span t-field="o.employee_id.name"/>,</p>
<p>
We are pleased to inform you that your monthly salary has been revised to
<strong>
<span t-esc="o.wage" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</strong>
with effect from <strong><span t-field="o.date_start"/></strong>.
</p>
<p>
All other employment terms remain unchanged unless separately communicated in writing.
</p>
<p>
This salary will be processed through the MCS Simple Monthly Payroll structure.
No statutory tax, PF, ESI, or similar deductions are applied unless the company
separately registers for those obligations or is legally required to apply them.
</p>
<p>
Please sign and return a copy of this letter as acknowledgement of the revised salary.
</p>
<p style="margin-top: 28px;">
Sincerely,
</p>
<div style="display: table; width: 100%; margin-top: 56px; border: 0;">
<div style="display: table-cell; width: 44%; vertical-align: top; border: 0;">
<div style="border-top: 1px solid #9ca3af; padding-top: 10px;">
<strong>For <span t-field="o.company_id.name"/></strong><br/>
Authorized Signatory
</div>
</div>
<div style="display: table-cell; width: 12%; border: 0;"></div>
<div style="display: table-cell; width: 44%; vertical-align: top; border: 0;">
<div style="border-top: 1px solid #9ca3af; padding-top: 10px;">
<strong>Acknowledged and Accepted</strong><br/>
<span t-field="o.employee_id.name"/>
</div>
</div>
</div>
<div style="border-top: 1px solid #e5e7eb; margin-top: 48px; padding-top: 10px; font-size: 11px; color: #4b5563; text-align: center;">
<span t-field="o.company_id.name"/>
<t t-if="o.company_id.email">
<span> | </span>
<span t-field="o.company_id.email"/>
</t>
</div>
</div>
</t>
</t>
</t>
</template>
</odoo>