<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="payroll_employee_email_template" model="mail.template">
          <field name="name">Payroll Employee</field>
          <field name="model_id" ref="hr.model_hr_employee" />
          <field name="email_from">{{object.company_id.email}}</field>
          <field name="email_to">{{object.work_email}}</field>
          <field name="subject">Payroll {{ctx.get('subject')}}</field>
          <field name="auto_delete" eval="False" />
          <field name="body_html">
              <![CDATA[<html>
                  <head></head>
                  <body style="margin: 0; padding: 0;">
                    <table style="padding:20px;background-color:#ededed; border-collapse:separate" width="100%" cellpadding="0" border="0"><tbody><!-- HEADER --><tr><td style="min-width:590px" align="center"><table style="min-width:590px;background-color:#fff; padding:20px; border-collapse:separate" width="590" cellpadding="0" border="0"><tbody><tr><td style="text-align:right" valign="middle"><img src="/logo.png" style="padding:0px;margin:0px; height:auto; width:80px" alt="{{object.company_id.name}}"></td></tr><tr><td style="text-align:left" valign="middle"><h2 style="color:rgb(28, 130, 156)"><font style="color:rgb(107, 175, 103);">Payroll <t t-out="ctx.get('subject')" contenteditable="false" data-oe-t-inline="true"/></font></h2></td></tr></tbody></table></td></tr><!-- CONTENT --><tr><td style="min-width:590px" align="center"><table style="min-width:590px;background-color:rgb(255, 255, 255); padding:20px; border-collapse:separate" width="590" cellpadding="0" border="0"><tbody><tr><td style="font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px" valign="top"><p> </p><p>Hello <t t-out="object.name" contenteditable="false" data-oe-t-inline="true"/>,</p><br><p>We send you the payroll with the subject <t t-out="ctx.get('subject')" contenteditable="false" data-oe-t-inline="true"/>.<br></p></td></tr><tr><td style="font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px" valign="top"><br></td></tr><tr><td style="font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px" valign="top"><br><p></p></td></tr></tbody></table></td></tr><!-- FOOTER --><tr><td style="min-width:590px" align="center"><table style="min-width:590px;background-color:#95ce3f; padding:20px; border-collapse:separate" width="590" cellpadding="0" border="0"><tbody> </tbody></table></td></tr></tbody></table>
                    <p></p>
                  </html>
              ]]>
          </field>
    </record>
</odoo>
