Skip to content
Snippets Groups Projects

Fix/edit email templates

Merged konykon requested to merge fix/edit-email-templates into dev
All threads resolved!
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<odoo>
<data noupdate="1">
<data>
<record id="email_templ_lead_ce_creation_receipt_confirm_id" model="mail.template">
<record id="email_templ_lead_ce_creation_receipt_confirm_id" model="mail.template">
<field name="name">Confirmation Email for CE Creation Lead Receipt</field>
<field name="name">Confirmation Email for CE Creation Lead Receipt</field>
<field name="email_from">
<field name="email_from">${(object.company_id.email)}</field>
${(object.company_id.coop_email_contact or object.company_id.email)|safe}
</field>
<field name="subject">[Somcomunitats.coop] New Community Creation Request to the platform</field>
<field name="subject">[Somcomunitats.coop] New Community Creation Request to the platform</field>
<field name="email_to">${object.email_from}</field>
<field name="email_to">${object.email_from}</field>
<field name="email_cc">${object.company_id.email}</field>
<field name="email_cc">${object.company_id.email}</field>
<field name="reply_to">
<field name="reply_to">${(object.company_id.email)}</field>
${(object.company_id.coop_email_contact or object.company_id.email)|safe}
</field>
<field name="model_id" ref="model_crm_lead" />
<field name="model_id" ref="model_crm_lead" />
<field name="auto_delete" eval="True" />
<field name="auto_delete" eval="True" />
<field name="lang">${(object.company_id.default_lang_id.code or object.company_id.partner_id.lang)}</field>
<field name="lang">${(object.company_id.default_lang_id.code or object.company_id.partner_id.lang)}</field>
<field
<field name="body_html"><![CDATA[
name="body_html"
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
><![CDATA[
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
<p>Hello,</p>
<p>Hello,</p>
<p>Thank you for filling out the form and requesting the membership of your Energy Community on the Somcomunitats.coop platform.</p>
<p>Thank you for filling out the form and requesting the membership of your Energy Community on the Somcomunitats.coop platform.</p>
<p>In the coming weeks we will study the application and contact you to indicate the steps and the information necessary to complete the registration process for the Community and the people who are part of it.</p>
<p>In the coming weeks we will study the application and contact you to indicate the steps and the information necessary to complete the registration process for the Community and the people who are part of it.</p>
<p>Here is a copy of the data we received:</p>
<br />
<p>We keep in touch for any questions.</p>
<div id="field_list_div" style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 10px; color: rgb(34, 34, 34); background-color: #FFF; ">
<p>Yours faithfully,</p>
<p> - Community name: ${object.name}</p>
<p>Somcomunitats.coop team </p>
<p> - Description: ${object.description}</p>
<p><a href="https://web-test.somcomunitats.coop/recursos/">Resources and FAQs</a></p>
<p> - Address: ${object.street}</p>
<p> - Zip code: ${object.zip}</p>
<p> - City: ${object.city}</p>
<p> - Email: ${object.email_from}</p>
<p> - Phone: ${object.phone}</p>
<p></p>
% if object.form_submission_metadata_ids:
% for meta in object.form_submission_metadata_ids:
% if meta.value:
% if meta.key == 'partner_qty_members':
<p> - Members: ${meta.value}</p>
% endif
% if meta.key == 'partner_legal_state':
<p> - Activity state: ${meta.value}</p>
% endif
% if meta.key == 'partner_foundation_date':
<p> - Foundation date: ${meta.value}</p>
% endif
% if meta.key == 'partner_vat':
<p> - Activity state: ${meta.value}</p>
% endif
% if meta.key == 'partner_comments':
<p> - Comments: ${meta.value}</p>
% endif
% if meta.key == 'partner_firstname':
<p> - Contact firstname: ${meta.value}</p>
% endif
% if meta.key == 'partner_lastname':
<p> - Contact lastname: ${meta.value}</p>
% endif
% if meta.key == 'contact2_firstname':
<p> - Contact 2 firstname: ${meta.value}</p>
% endif
% if meta.key == 'contact2_lastname':
<p> - Contact 2 lastname: ${meta.value}</p>
% endif
% if meta.key == 'contact2_email':
<p> - Contact 2 email: ${meta.value}</p>
% endif
% if meta.key == 'contact2_mobile':
<p> - Contact 2 phone: ${meta.value}</p>
% endif
% endif
% endfor
% endif
% if object.tag_ids:
<p> - Interested in:</p>
% for tag in object.tag_ids:
<p> ${tag.name}</p>
% endfor
% endif
</div>
<br />
<p>We keep in touch for any questions.</p>
<p>Yours faithfully,</p>
<p>Somcomunitats.coop team </p>
<p><a href="https://web-test.somcomunitats.coop/recursos/">Resources and FAQs</a></p>
</div>
</div>
]]></field>
]]></field>
</record>
</record>
@@ -101,7 +38,6 @@
@@ -101,7 +38,6 @@
</field>
</field>
<field name="subject">[Somcomunitats.coop] Community Contact Request</field>
<field name="subject">[Somcomunitats.coop] Community Contact Request</field>
<field name="email_to">${object.email_from}</field>
<field name="email_to">${object.email_from}</field>
<field name="email_cc">info+contacteCE@somcomunitats.coop</field>
<field name="email_cc">${object.company_id.email}</field>
<field name="email_cc">${object.company_id.email}</field>
<field name="reply_to">
<field name="reply_to">
${(object.company_id.coop_email_contact or object.company_id.email)|safe}
${(object.company_id.coop_email_contact or object.company_id.email)|safe}
@@ -109,6 +45,7 @@
@@ -109,6 +45,7 @@
<field name="model_id" ref="model_crm_lead" />
<field name="model_id" ref="model_crm_lead" />
<field name="auto_delete" eval="True" />
<field name="auto_delete" eval="True" />
<field name="lang">${(object.company_id.default_lang_id.code or object.company_id.partner_id.lang)}</field>
<field name="lang">${(object.company_id.default_lang_id.code or object.company_id.partner_id.lang)}</field>
 
<field name="lang">${(object.company_id.default_lang_id.code or object.company_id.partner_id.lang)}</field>
<field
<field
name="body_html"
name="body_html"
><![CDATA[
><![CDATA[
@@ -153,7 +90,6 @@
@@ -153,7 +90,6 @@
</field>
</field>
<field name="subject">[Somcomunitats.coop] Community Newsletter Subscription Request</field>
<field name="subject">[Somcomunitats.coop] Community Newsletter Subscription Request</field>
<field name="email_to">${object.email_from}</field>
<field name="email_to">${object.email_from}</field>
<field name="email_cc">info+butlletiCE@somcomunitats.coop</field>
<field name="email_cc">${object.company_id.email}</field>
<field name="email_cc">${object.company_id.email}</field>
<field name="reply_to">
<field name="reply_to">
${(object.company_id.coop_email_contact or object.company_id.email)|safe}
${(object.company_id.coop_email_contact or object.company_id.email)|safe}
@@ -242,10 +178,9 @@
@@ -242,10 +178,9 @@
<record id="email_templ_lead_request_platform_news_confirm_id" model="mail.template">
<record id="email_templ_lead_request_platform_news_confirm_id" model="mail.template">
<field name="name">Confirmation Email for Platform News Request Lead Receipt</field>
<field name="name">Confirmation Email for Platform News Request Lead Receipt</field>
<field name="email_from">info+butlleti@somcomunitats.coop</field>
<field name="email_from">${object.company_id.email}</field>
<field name="subject">[Somcomunitats.coop] Platform Newsletter Subscription Request</field>
<field name="subject">[Somcomunitats.coop] Platform Newsletter Subscription Request</field>
<field name="email_to">${object.email_from}</field>
<field name="email_to">${object.email_from}</field>
<field name="email_cc">info+butlleti@somcomunitats.coop</field>
<field name="email_cc">${object.company_id.email}</field>
<field name="email_cc">${object.company_id.email}</field>
<field name="reply_to">
<field name="reply_to">
${(object.company_id.coop_email_contact or object.company_id.email)|safe}
${(object.company_id.coop_email_contact or object.company_id.email)|safe}
@@ -283,4 +218,4 @@
@@ -283,4 +218,4 @@
</data>
</data>
</odoo>
</odoo>
\ No newline at end of file
Loading