1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/hr_contract_salary/data/mail_templates.xml
2024-12-10 09:04:09 +07:00

37 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="hr_contract_salary_email_template">
<div>
<t t-foreach="mapped_data" t-as="section">
<h2><t t-esc="section"/></h2>
<t t-foreach="mapped_data[section]" t-as="subsection">
<h3><t t-esc="subsection"/></h3>
<ul>
<t t-foreach="mapped_data[section][subsection]" t-as="value">
<li><t t-esc="value[0]"></t>: <t t-esc="value[1]"/></li>
</t>
</ul>
</t>
</t>
</div>
</template>
<template id="hr_contract_salary_diff_email_template">
<div>
<t t-if="differences">
<h3>Changes summary since previous contract:</h3>
<ul>
<t t-foreach="differences" t-as="field">
<li>
<t t-esc="field[0]"></t>: <t t-esc="field[1]"></t><t t-esc="field[2]"></t>
</li>
</t>
</ul>
</t>
<t t-else="">
<h3>There were no changes since previous contract.</h3>
</t>
</div>
</template>
</odoo>