Skip to content

Commit

Permalink
*: Fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
etobella committed Oct 28, 2023
1 parent ce0592d commit 13f2713
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 38 deletions.
6 changes: 3 additions & 3 deletions hr_holidays_public/views/hr_holidays_public_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<field name="name">hr.holidays.public.tree</field>
<field name="model">hr.holidays.public</field>
<field name="arch" type="xml">
<tree string="Public Holidays">
<tree>
<field name="display_name" />
<field name="country_id" />
</tree>
Expand All @@ -14,7 +14,7 @@
<field name="name">hr.holidays.public.form</field>
<field name="model">hr.holidays.public</field>
<field name="arch" type="xml">
<form string="Public Holidays">
<form>
<group name="group_main">
<group name="group_main_left">
<field name="year" />
Expand All @@ -26,7 +26,7 @@
</group>
<group string="Public Holidays" name="group_detail">
<field name="line_ids" nolabel="1">
<tree string="Public Holidays" editable="top">
<tree editable="top">
<field
name="date"
attrs="{'readonly':[['variable_date', '=', False]]}"
Expand Down
68 changes: 33 additions & 35 deletions hr_holidays_summary_email/data/mail_template_data.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
<?xml version="1.0" ?>
<odoo>
<data noupdate="1">
<odoo noupdate="1">
<record id="hr_holidays_summary_mail_template_daily" model="mail.template">
<field name="name">Leaves Summary: Daily</field>
<field name="model_id" ref="hr.model_hr_employee" />
<field name="subject">Daily Leaves Summary</field>
<field name="email_to">${object.work_email | safe}</field>
<field
name="email_from"
>${object.company_id.partner_id.email_formatted | safe}</field>
name="email_from"
>${object.company_id.partner_id.email_formatted | safe}</field>
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p>Dear ${object.name},</p>
<br />
<p>This is today's leave summary:</p>
<br />
<table
style="border-spacing: 0; border-collapse: collapse; width: 100%; text-align: center;"
>
style="border-spacing: 0; border-collapse: collapse; width: 100%; text-align: center;"
>
<tr>
<th
style="padding: 5px; border: 1px solid black;"
>Employee</th>
style="padding: 5px; border: 1px solid black;"
>Employee</th>
<th
style="padding: 5px; border: 1px solid black;"
>Time Off</th>
style="padding: 5px; border: 1px solid black;"
>Time Off</th>
<th style="padding: 5px; border: 1px solid black;">From</th>
<th style="padding: 5px; border: 1px solid black;">To</th>
</tr>
Expand All @@ -34,17 +33,17 @@
% set d_to = data.format_hr_leave_summary_date(False)
<tr>
<td
style="padding: 5px; border: 1px solid black;"
>${data.employee_id.name}</td>
style="padding: 5px; border: 1px solid black;"
>${data.employee_id.name}</td>
<td
style="padding: 5px; border: 1px solid black;"
>${data.name or ''}</td>
style="padding: 5px; border: 1px solid black;"
>${data.name or ''}</td>
<td
style="padding: 5px; border: 1px solid black;"
>${d_from}</td>
style="padding: 5px; border: 1px solid black;"
>${d_from}</td>
<td
style="padding: 5px; border: 1px solid black;"
>${d_to}</td>
style="padding: 5px; border: 1px solid black;"
>${d_to}</td>
</tr>
% endfor
</table>
Expand All @@ -59,24 +58,24 @@
<field name="subject">Weekly Leaves Summary</field>
<field name="email_to">${object.work_email | safe}</field>
<field
name="email_from"
>${object.company_id.partner_id.email_formatted | safe}</field>
name="email_from"
>${object.company_id.partner_id.email_formatted | safe}</field>
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p>Dear ${object.name},</p>
<br />
<p>This is the leaves summary for this week:</p>
<br />
<table
style="border-spacing: 0; border-collapse: collapse; width: 100%; text-align: center;"
>
style="border-spacing: 0; border-collapse: collapse; width: 100%; text-align: center;"
>
<tr>
<th
style="padding: 5px; border: 1px solid black;"
>Employee</th>
style="padding: 5px; border: 1px solid black;"
>Employee</th>
<th
style="padding: 5px; border: 1px solid black;"
>Time Off</th>
style="padding: 5px; border: 1px solid black;"
>Time Off</th>
<th style="padding: 5px; border: 1px solid black;">From</th>
<th style="padding: 5px; border: 1px solid black;">To</th>
</tr>
Expand All @@ -86,17 +85,17 @@
% set d_to = data.format_hr_leave_summary_date(False)
<tr>
<td
style="padding: 5px; border: 1px solid black;"
>${data.employee_id.name}</td>
style="padding: 5px; border: 1px solid black;"
>${data.employee_id.name}</td>
<td
style="padding: 5px; border: 1px solid black;"
>${data.name or ''}</td>
style="padding: 5px; border: 1px solid black;"
>${data.name or ''}</td>
<td
style="padding: 5px; border: 1px solid black;"
>${d_from}</td>
style="padding: 5px; border: 1px solid black;"
>${d_from}</td>
<td
style="padding: 5px; border: 1px solid black;"
>${d_to}</td>
style="padding: 5px; border: 1px solid black;"
>${d_to}</td>
</tr>
% endfor
</table>
Expand All @@ -105,5 +104,4 @@
<field name="lang">${object.lang}</field>
<field name="auto_delete" eval="True" />
</record>
</data>
</odoo>

0 comments on commit 13f2713

Please sign in to comment.