odoo18/addons_extensions/cwf_timesheet/data/email_template.xml

110 lines
3.7 KiB
XML

<odoo>
<data noupdate="0">
<record id="email_template_timesheet_update" model="mail.template">
<field name="name">Timesheet Update Reminder</field>
<field name="email_from">${(user.email or '')}</field>
<field name="subject">Reminder: Update Your Weekly Timesheet</field>
<field name="body_html" type="html"> <style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f6f9;
}
.email-container {
width: 100%;
background: linear-gradient(45deg, #3498db, #2c3e50);
padding: 40px 0;
display: flex;
justify-content: center;
}
.email-content {
background-color: white;
border-radius: 12px;
width: 80%;
max-width: 700px;
padding: 30px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.header {
text-align: center;
margin-bottom: 20px;
}
.header h1 {
color: #3498db;
font-size: 32px;
margin: 0;
}
.greeting {
font-size: 18px;
color: #2c3e50;
margin-bottom: 20px;
}
.message {
font-size: 16px;
color: #333;
line-height: 1.5;
margin-bottom: 20px;
}
.cta-button {
display: inline-block;
padding: 12px 25px;
background-color: #3498db;
color: white;
font-size: 16px;
text-decoration: none;
border-radius: 6px;
transition: background-color 0.3s;
}
.cta-button:hover {
background-color: #2980b9;
}
.footer {
font-size: 14px;
color: #7f8c8d;
margin-top: 30px;
text-align: center;
}
.footer a {
color: #3498db;
text-decoration: none;
}
</style>
<body>
<div class="email-container">
<div class="email-content">
<div class="header">
<h1>Timesheet Reminder</h1>
</div>
<div class="greeting">
<p>Dear <strong t-out="object.employee_id.name"/> ,</p>
</div>
<div class="message">
<p>
I hope this message finds you in good spirits. I would like to remind you to please update your weekly timesheet for the period from <strong t-out="object.week_id.week_start_date"/> to <strong t-out="object.week_id.week_end_date"/>.
Timely updates are crucial for maintaining accurate records and ensuring smooth processing.
</p>
<p>
To make things easier, you can use the link below to update your timesheet:
</p>
<a href="https://ftprotech.in/odoo/action-261" class="cta-button" target="_blank">Update Timesheet</a>
</div>
<div class="footer">
<p>
Thank you for your attention.<br/>
Best regards,<br/>
<strong>Fast Track Project Pvt Ltd.</strong>
</p>
<p>
<a href="https://ftprotech.in/" target="_blank">Visit our site</a> for more information.
</p>
</div>
</div>
</div>
</body>
</field>
<field name="model_id" ref="model_cwf_timesheet_line"/> <!-- Ensure this line references the correct model -->
</record>
</data>
</odoo>