summaryrefslogtreecommitdiff
path: root/om_hr_payroll/data/mail_template.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
commit1ca3b3df3421961caec3b747a364071c80f5c7da (patch)
tree6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /om_hr_payroll/data/mail_template.xml
parentb57188be371d36d96caac4b8d65a40745c0e972c (diff)
initial commit
Diffstat (limited to 'om_hr_payroll/data/mail_template.xml')
-rw-r--r--om_hr_payroll/data/mail_template.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/om_hr_payroll/data/mail_template.xml b/om_hr_payroll/data/mail_template.xml
new file mode 100644
index 0000000..63e4477
--- /dev/null
+++ b/om_hr_payroll/data/mail_template.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data>
+
+ <record id="mail_template_payslip" model="mail.template">
+ <field name="name">Payslip Template</field>
+ <field name="model_id" ref="om_hr_payroll.model_hr_payslip"/>
+ <field name="email_from">${(user.email |safe)}</field>
+ <field name="email_to">${object.employee_id.work_email}</field>
+ <field name="subject">Payslip: ${object.number}</field>
+ <field name="auto_delete" eval="True"/>
+ <field name="body_html"><![CDATA[
+ <p>Dear ${object.employee_id.name},</p>
+ <p>Please find the attached payslip of the period: ${object.date_from} - ${object.date_to}</p>
+ <p>In case of any queries concerning this matter, do not hesitate to contact our accounting/hr department.</p>
+ <br/>
+ Best Regards,
+ <br/>
+ ${user.name}
+ <br/>
+ ]]>
+ </field>
+ <field name="report_template" ref="om_hr_payroll.payslip_details_report"/>
+ <field name="report_name">${(object.number or '').replace('/','_')}</field>
+ </record>
+
+ </data>
+</odoo> \ No newline at end of file