Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final tweaks #11

Merged
merged 7 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 101 additions & 63 deletions email_templates/README.md

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions email_templates/calendar_template_meeting_changedate.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,14 @@
<li>Attendees
<ul>
<li t-foreach="object.event_id.attendee_ids" t-as="attendee">
<div t-attf-style="display: inline-block; border-radius: 50%; width: 10px; height: 10px; background: {{ colors.get(attendee.state) or 'white' }};"> </div>
<t t-if="attendee.common_name != object.common_name">
<span style="margin-left:5px" t-out="attendee.common_name or ''">Mitchell Admin</span>
</t>
<t t-else="">
<span style="margin-left:5px">You</span>
</t>
<div t-attf-style="display: inline-block; border-radius: 50%; width: 10px; height: 10px; background: {{ colors.get(attendee.state) or 'white' }};">
<t t-if="attendee.common_name != object.common_name">
<span style="margin-left:5px" t-out="attendee.common_name or ''">Mitchell Admin</span>
</t>
<t t-else="">
<span style="margin-left:5px">You</span>
</t>
</div>
</li>
</ul></li>
<t t-if="object.event_id.videocall_location">
Expand Down
15 changes: 8 additions & 7 deletions email_templates/calendar_template_meeting_invitation.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@
<li>Attendees
<ul>
<li t-foreach="object.event_id.attendee_ids" t-as="attendee">
<div t-attf-style="display: inline-block; border-radius: 50%; width: 10px; height: 10px; background:{{ colors.get(attendee.state) or 'white' }};"> </div>
<t t-if="attendee.common_name != object.common_name">
<span style="margin-left:5px" t-out="attendee.common_name or ''">Mitchell Admin</span>
</t>
<t t-else="">
<span style="margin-left:5px">You</span>
</t>
<div t-attf-style="display: inline-block; border-radius: 50%; width: 10px; height: 10px; background:{{ colors.get(attendee.state) or 'white' }};">
<t t-if="attendee.common_name != object.common_name">
<span style="margin-left:5px" t-out="attendee.common_name or ''">Mitchell Admin</span>
</t>
<t t-else="">
<span style="margin-left:5px">You</span>
</t>
</div>
</li>
</ul></li>
<t t-if="object.event_id.videocall_location">
Expand Down
15 changes: 8 additions & 7 deletions email_templates/calendar_template_meeting_reminder.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@
<li>Attendees
<ul>
<li t-foreach="object.event_id.attendee_ids" t-as="attendee">
<div t-attf-style="display: inline-block; border-radius: 50%; width: 10px; height: 10px; background:{{ colors.get(attendee.state) or 'white' }};"> </div>
<t t-if="attendee.common_name != object.common_name">
<span style="margin-left:5px" t-out="attendee.common_name or ''">Mitchell Admin</span>
</t>
<t t-else="">
<span style="margin-left:5px">You</span>
</t>
<div t-attf-style="display: inline-block; border-radius: 50%; width: 10px; height: 10px; background:{{ colors.get(attendee.state) or 'white' }};">
<t t-if="attendee.common_name != object.common_name">
<span style="margin-left:5px" t-out="attendee.common_name or ''">Mitchell Admin</span>
</t>
<t t-else="">
<span style="margin-left:5px">You</span>
</t>
</div>
</li>
</ul></li>
<t t-if="object.event_id.videocall_location">
Expand Down
24 changes: 17 additions & 7 deletions email_templates/calendar_template_meeting_update.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<t t-set="recurrent" t-value="object.recurrence_id and not ctx.get('calendar_template_ignore_recurrence')"></t>
<t t-set="mail_tz" t-value="object._get_mail_tz() or ctx.get('mail_tz')"></t>

<p>
Dear <t t-out="object.common_name or 'customer'">Ready Mat</t>,<br><br>
An event that you are participating in has been updated.
</p>
<div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
Expand Down Expand Up @@ -46,11 +42,11 @@
<li>Description:
<t t-out="object.description">Internal meeting for discussion for new pricing for product and services.</t></li>
</t>
<t t-if="object.event_id.videocall_location">
<t t-if="object.videocall_location">
<li>
<t t-if="object.get_base_url() in object.event_id.videocall_location">Join with Odoo Discuss:</t>
<t t-if="object.get_base_url() in object.videocall_location">Join with Odoo Discuss:</t>
<t t-else="">Join the meeting at:</t><br/>
<a t-att-href="object.event_id.videocall_location" target="_blank" t-out="object.event_id.videocall_location or ''">www.mycompany.com/calendar/join_videocall/xyz</a>
<a t-att-href="object.videocall_location" target="_blank" t-out="object.videocall_location or ''">www.mycompany.com/calendar/join_videocall/xyz</a>
</li>
</t>
<t t-if="object.location">
Expand All @@ -75,4 +71,18 @@
<hr>
<p placeholder="Enter your message here"><br></p>
</div>
<!-- NOTE: we include the signature here, because the light layout is used for this one (which does not include a signature)! -->
<t t-if="object.user_id.signature" data-o-mail-quote-container="1">
<p>
Best regards,
<div>
<t t-if="object.user_id.signature" t-out="object.user_id.signature" data-o-mail-quote="1">
<p>John Doe</p>
</t>
<t t-else="">
<p>The GeoCat Team</p>
</t>
</div>
</p>
</t>
</div>
28 changes: 28 additions & 0 deletions email_templates/email_payment_close.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<div>
Dear <t t-out="object.partner_id.name or 'customer'">Brandon Freeman</t>,
<br><br>
<t t-if="ctx.get('payment_token')">
Our final attempt to process a payment for your subscription using your payment method
<t t-out="ctx.get('payment_token') or ''">TOKEN</t> failed.
<t t-if="ctx.get('error')">
<br>
Your bank or credit institution gave the following details about the issue:
<pre t-out="ctx['error'] or ''"></pre>
</t>
<br>
</t>
<t t-else="">
Our final attempt to process a payment for your subscription failed because we have no payment method recorded for you,
and we are unaware of any other payment efforts.
<br>
</t>
<br>
As your payment should have been made <t t-out="ctx.get('auto_close_limit') or ''">5</t> days ago, <strong>your subscription has been terminated</strong>.<br>
If you wish to resolve this issue, or if you have made a payment recently, please contact us to resolve the issue.
<br><br>
<!-- NOTE: we include a generic signature here, because the light layout is used for this one (which does not include a signature)! -->
<div data-o-mail-quote-container="1">
Best regards,
<p data-o-mail-quote="1">The GeoCat Team</p>
</div>
</div>
35 changes: 35 additions & 0 deletions email_templates/email_payment_reminder.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<div>
Dear <t t-out="object.partner_id.name or 'customer'">Brandon Freeman</t>,
<br><br>
<t t-if="ctx.get('payment_token')">
We were unable to process a payment for your subscription using your payment method
<t t-out="ctx.get('payment_token') or ''">TOKEN</t>.
<t t-if="ctx.get('error')">
<br>
Your bank or credit institution gave the following details about the issue:
<pre t-out="ctx['error'] or ''"></pre>
</t>
<br>
</t>
<t t-else="">
Your subscription <t t-out="ctx.get('code') or ''">CODE</t> is due for renewal but we haven’t received your payment yet.<br>
To keep your subscription active, please make your payment as soon as possible.
<br>
</t>
<br>
Please note that your subscription <t t-out="ctx.get('code') or ''">CODE</t> is still valid but will be <strong>suspended</strong>
on <t t-out="format_date(ctx.get('date_close')) or ''">05/05/2021</t>.<br>
<div style="margin: 30px 0; text-align: center;">
<a t-attf-href="{{ ctx.get('payment_link', object.get_portal_url()) }}"
style="padding: 8px 40px; color: #FFFFFF; text-decoration: none; background-color: #0092FF; border-radius: 50px; font-size: 14px; font-weight: 500;">
Pay Now
</a>
</div>
If you have any questions, do not hesitate to contact us.
<br><br>
<!-- NOTE: we include a generic signature here, because the light layout is used for this one (which does not include a signature)! -->
<div data-o-mail-quote-container="1">
Best regards,
<p data-o-mail-quote="1">The GeoCat Team</p>
</div>
</div>
26 changes: 26 additions & 0 deletions email_templates/email_template_data_applicant_congratulations.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<div>
Dear <t t-out="object.partner_name or 'applicant'">applicant</t>,
<br><br>
We have successfully received your application for the job position of
<strong t-out="object.job_id.name or ''">Experienced Developer</strong> at <strong t-out="object.company_id.name or ''">YourCompany</strong>.
<br>
<t t-if="'website_url' in object.job_id and object.job_id.website_url">
<div style="margin: 30px 0; text-align: center;">
<a t-att-href="object.job_id.website_url"
style="padding: 8px 40px; color: #FFFFFF; text-decoration: none; background-color: #0092FF; border-radius: 50px; font-size: 14px; font-weight: 500;">
Job Description
</a>
</div>
</t>
<t t-else="">
<br>
</t>
Please note that it may take some time to review your application. We will get back to you as soon as possible.<br>
If you haven't heard from us within 2 weeks, feel free to contact us by replying to this email.
<br><br><br>
<!-- NOTE: we include a generic signature here, because the light layout is used for this one (which does not include a signature)! -->
<div data-o-mail-quote-container="1">
Best regards,
<p data-o-mail-quote="1">The GeoCat Team</p>
</div>
</div>
58 changes: 58 additions & 0 deletions email_templates/email_template_data_applicant_interest.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<div>
Dear <t t-out="object.partner_name or 'applicant'">applicant</t>,
<br><br>
<strong>Congratulations! Your resume has been positively reviewed! &#129395;</strong>
<br><br>
We just reviewed your resume, and it caught our attention.<br>
As we think you might be great for the position, your application has
been shortlisted for a call or an interview.
<br>
<div t-if="'website_url' in object.job_id and object.job_id.website_url" style="margin: 30px 0; text-align: center;">
<a t-att-href="object.job_id.website_url"
style="padding: 8px 40px; color: #FFFFFF; text-decoration: none; background-color: #0092FF; border-radius: 50px; font-size: 14px; font-weight: 500;">
Job Description
</a>
</div>
<br>
<strong>What happens next?</strong><br>
You will soon be contacted by someone from our team to schedule a job interview.<br>
<t t-if="object.job_id.address_id">
Depending on the position and your availability, we can meet remotely or (preferably) at our office location:
<br><br>
<t t-set="location" t-value="''"/>
<t t-if="object.job_id.address_id.street">
<t t-out="object.job_id.address_id.street or ''">Puerto Madero 9710</t><br>
<t t-set="location" t-value="object.job_id.address_id.street"/>
</t>
<t t-if="object.job_id.address_id.street2">
<t t-out="object.job_id.address_id.street2 or ''">Of A15, Santiago (RM)</t><br>
<t t-set="location" t-value="'%s, %s' % (location, object.job_id.address_id.street2)"/>
</t>
<t t-if="object.job_id.address_id.zip">
<t t-out="object.job_id.address_id.zip or ''">98450</t>
<t t-set="location" t-value="'%s, %s' % (location, object.job_id.address_id.zip)"/>
</t>
<t t-if="object.job_id.address_id.city">
<t t-out="object.job_id.address_id.city or ''">Pudahuel</t><br>
<t t-set="location" t-value="'%s %s' % (location, object.job_id.address_id.city)"/>
</t>
<t t-if="object.job_id.address_id.country_id.name">
<t t-out="object.job_id.address_id.country_id.name or ''">Argentina</t>
<t t-set="location" t-value="'%s, %s' % (location, object.job_id.address_id.country_id.name)"/>
</t>
</t>
<t t-else="">
Depending on the position and your availability, we can meet remotely or (preferably) at our office location.
</t>
<br><br>
If your first interview goes well, you will usually be invited for a second interview.<br>
An assessment or a test might be part of the process, depending on the position you are applying for.
<br><br>
We usually contact you within a couple of days.<br>In the meantime, please feel free to reply to this email if you have any questions or concerns.
<br><br><br>
<!-- NOTE: we include a generic signature here, because the light layout is used for this one (which does not include a signature)! -->
<div data-o-mail-quote-container="1">
See you soon,
<p data-o-mail-quote="1">The GeoCat Team</p>
</div>
</div>
14 changes: 14 additions & 0 deletions email_templates/email_template_data_applicant_not_interested.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div>
Dear <t t-out="object.partner_name or 'applicant'">applicant</t>,
<br><br>
You have indicated that you are no longer interested in the job position of
<strong t-out="object.job_id.name or ''">Experienced Developer</strong> at <strong t-out="object.company_id.name or ''">YourCompany</strong>.
<br>
We thank you for your interest in our company and wish you all the best in your future endeavors.
<br><br><br>
<!-- NOTE: we include a generic signature here, because the light layout is used for this one (which does not include a signature)! -->
<div data-o-mail-quote-container="1">
Best regards,
<p data-o-mail-quote="1">The GeoCat Team</p>
</div>
</div>
24 changes: 24 additions & 0 deletions email_templates/email_template_data_applicant_refuse.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<div>
Dear <t t-out="object.partner_name or 'applicant'">applicant</t>,
<br><br>
Thank you for your interest in joining the
<strong><t t-out="object.company_id.name or ''">YourCompany</t></strong> team.<br>
We wanted to let you know that, although your resume is competitive, our hiring team reviewed your application
and <strong>did not select it for further consideration</strong>.
<br><br>
Please note that recruiting is hard, and we can make mistakes.<br>
Do not hesitate to reply to this email if you think we made a mistake, or if you require more information about our decision.
<br><br>
We will, however, keep your resume on record and get in touch with you about future opportunities that may be a
better fit for your skills and experience.
<br><br>
We wish you all the best in your job search and hope we
will have the chance to consider you for another role
in the future.
<br><br>
<!-- NOTE: we include a generic signature here, because the light layout is used for this one (which does not include a signature)! -->
<div data-o-mail-quote-container="1">
Best regards,
<p data-o-mail-quote="1">The GeoCat Team</p>
</div>
</div>
10 changes: 5 additions & 5 deletions email_templates/email_template_edi_sale.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@

Dear <t t-out="object.partner_id.name or 'customer'">Azure Interior</t>,
<br><br>
Your
Please find the attached
<t t-if="ctx.get('proforma')">
pro forma invoice for <t t-out="doc_name or ''">quotation</t> <strong t-out="object.name or ''">S00052</strong>
<t t-if="object.origin">
with reference <strong t-out="object.origin or ''">#YOURREF</strong> )
</t> is available.
with reference <strong t-out="object.origin or ''">#YOURREF</strong>
</t>.
</t>
<t t-else="">
<t t-out="doc_name or ''">quotation</t> <strong t-out="object.name or ''">S00052</strong>
<t t-if="object.origin">
with reference <strong t-out="object.origin or ''">#YOURREF</strong> )
</t> is ready for review.
with reference <strong t-out="object.origin or ''">#YOURREF</strong>
</t>.
</t>
<br><br>
<t t-if="documents and len(documents)>0">
Expand Down
11 changes: 6 additions & 5 deletions email_templates/mail_template_data_portal_welcome.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<div>
Dear <t t-out="object.user_id.name or 'portal user'">Marc Demo</t>,<br><br>
Welcome to the
<t t-out="object.user_id.company_id.name">GeoCat</t> Portal!<br><br>
Welcome to the GeoCat customer portal!<br><br>
An account has been created for you with the following login:
<strong t-out="object.user_id.login">demo</strong>.
<br><br>
<strong t-out="object.user_id.login">demo</strong>.<br>
Please click on the button below to activate your account.
<div style="margin: 30px 0; text-align: center;">
<a t-att-href="object.user_id.partner_id._get_signup_url()"
style="margin: 16px 5px; padding: 8px 40px; color: #FFFFFF; text-decoration: none; background-color: #0092FF; border-radius: 50px; font-size: 14px; font-weight: 500;">
Activate Now
</a>
</div>
<t t-out="object.wizard_id.welcome_message or ''">Welcome to our company's portal.</t>
<t t-if="object.wizard_id.welcome_message">
<br>
<t t-out="object.wizard_id.welcome_message or ''">Welcome to our company portal.</t>
</t>
</div>
12 changes: 12 additions & 0 deletions email_templates/mail_template_subscription_alert.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div>
Dear <t t-out="object.partner_id.name or 'customer'">Brandon Freeman</t>,
<br><br>
Your subscription <strong t-out="object.name or ''">Office Cleaning Service</strong> needs your attention.<br>
We invite you to renew it soon on our customer portal or by replying to this email.
<br><br>
<!-- NOTE: we include a generic signature here, because the light layout is used for this one (which does not include a signature)! -->
<div data-o-mail-quote-container="1">
Best regards,
<p data-o-mail-quote="1">The GeoCat Team</p>
</div>
</div>
Loading