Skip to content
Snippets Groups Projects
Commit 22fd6b21 authored by konykon's avatar konykon
Browse files

Merge branch 'imp/ce_source_general_contact' into 'dev'

Imp/ce source general contact

See merge request !229
parents 0efe4ef8 812a6b90
No related branches found
No related tags found
3 merge requests!239Draft: [REL] energy_communities: dependency energy_selfconsumption bump to,!229Imp/ce source general contact,!227[REL] Release 16/10/23
Pipeline #61156 passed
......@@ -177,5 +177,28 @@
]]></field>
</record>
<record id="email_templ_contact_platform_confirm_id" model="mail.template">
<field name="name">Confirmation Email Contact Platform Receipt</field>
<field name="email_from">${object.company_id.email}</field>
<field name="subject">[Somcomunitats.coop] Contact to the platform</field>
<field name="email_to">${ctx.get('email_to')}</field>
<field name="model_id" ref="model_crm_lead" />
<field name="auto_delete" eval="False" />
<field name="lang">${ctx.get('lang')}</field>
<field
name="body_html"
><![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>Thank you for getting in touch.</p>
<p>We have received your email. We will contact you as soon as possible.</p>
<br />
<p>Yours faithfully,</p>
<p>Somcomunitats.coop team </p>
<p><a href="https://web-test.somcomunitats.coop/recursos/">Resources and FAQs</a></p>
</div>
]]></field>
</record>
</data>
</odoo>
......@@ -13,6 +13,9 @@
<record model="utm.source" id="ce_source_existing_ce_contact">
<field name="name">Contact a existing CE</field>
</record>
<record model="utm.source" id="ce_source_general_contact">
<field name="name">Contact to the Platform</field>
</record>
<!-- CE Other Sources -->
<record model="utm.source" id="ce_source_creation_ce_proposal">
<field name="name">CE creation</field>
......
......@@ -415,6 +415,33 @@ msgstr ""
" </div>\n"
" "
#. module: energy_communities
#: model:mail.template,body_html:energy_communities.email_templ_contact_platform_confirm_id
msgid ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hello,</p>\n"
" <p>Thank you for getting in touch.</p>\n"
" <p>We have received your email. We will contact you as soon as possible.</p>\n"
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hola,</p>\n"
" <p>Gràcies per posar-te en contacte.</p>\n"
" <p>Hem rebut el teu correu electrònic. Ens posarem en contacte amb tu tan aviat com ens sigui possible.</p>\n"
" <br />\n"
" <p>Atentament,</p>\n"
" <p>Equip de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
" </div>\n"
" "
#. module: energy_communities
#: model:mail.template,body_html:energy_communities.email_template_confirmation_company
msgid ""
......@@ -821,6 +848,11 @@ msgstr "Contacte"
msgid "Contact a existing CE"
msgstr "Contactar una CE existent"
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_general_contact
msgid "Contact to the Platform"
msgstr "Contactar amb la plataforma"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_template_confirmation_voluntary_share
msgid "Contribute to ${object.company_id.name} Ref. ACSV${object.id}"
......@@ -2114,6 +2146,11 @@ msgid "[Somcomunitats.coop] Community Newsletter Subscription Request"
msgstr ""
"[Somcomunitats.coop] Subscripció al butlletí d’una Comunitat Energètica"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_contact_platform_confirm_id
msgid "[Somcomunitats.coop] Contact to the platform"
msgstr "[Somcomunitats.coop] Formulari de contacte"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_advise_future_ce_confirm_id
msgid "[Somcomunitats.coop] Interested in Communities in your area"
......
......@@ -220,6 +220,22 @@ msgid ""
" "
msgstr ""
#. module: energy_communities
#: model:mail.template,body_html:energy_communities.email_templ_contact_platform_confirm_id
msgid ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hello,</p>\n"
" <p>Thank you for getting in touch.</p>\n"
" <p>We have received your email. We will contact you as soon as possible.</p>\n"
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
#. module: energy_communities
#: model:mail.template,body_html:energy_communities.email_template_confirmation_company
msgid ""
......@@ -559,6 +575,11 @@ msgstr ""
msgid "Contact a existing CE"
msgstr ""
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_general_contact
msgid "Contact to the Platform"
msgstr ""
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_template_confirmation_voluntary_share
msgid "Contribute to ${object.company_id.name} Ref. ACSV${object.id}"
......@@ -1939,6 +1960,11 @@ msgstr ""
msgid "[Somcomunitats.coop] Community Newsletter Subscription Request"
msgstr ""
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_contact_platform_confirm_id
msgid "[Somcomunitats.coop] Contact to the platform"
msgstr ""
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_advise_future_ce_confirm_id
msgid "[Somcomunitats.coop] Interested in Communities in your area"
......
......@@ -373,6 +373,33 @@ msgstr ""
" </div>\n"
" "
#. module: energy_communities
#: model:mail.template,body_html:energy_communities.email_templ_contact_platform_confirm_id
msgid ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hello,</p>\n"
" <p>Thank you for getting in touch.</p>\n"
" <p>We have received your email. We will contact you as soon as possible.</p>\n"
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hola,</p>\n"
" <p>Gracias por ponerte en contacto.</p>\n"
" <p>Hemos recibido tu correo electrónico. Nos pondremos en contacto contigo lo antes possible.</p>\n"
" <br />\n"
" <p>Atentamente,</p>\n"
" <p>Equipo de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos i preguntas frequentes</a></p>\n"
" </div>\n"
" "
#. module: energy_communities
#: model:mail.template,body_html:energy_communities.email_template_confirmation_company
msgid ""
......@@ -720,6 +747,11 @@ msgstr "Contacte"
msgid "Contact a existing CE"
msgstr "Contactar una CE existente"
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_general_contact
msgid "Contact to the Platform"
msgstr "Contactar con la plataforma"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_template_confirmation_voluntary_share
msgid "Contribute to ${object.company_id.name} Ref. ACSV${object.id}"
......@@ -1947,6 +1979,11 @@ msgstr "[Somcomunitats.coop] Contacto Comunidad Energética"
msgid "[Somcomunitats.coop] Community Newsletter Subscription Request"
msgstr "[Somcomunitats.coop] Suscripción boletín Comunidad Energética"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_contact_platform_confirm_id
msgid "[Somcomunitats.coop] Contact to the platform"
msgstr "[Somcomunitats.coop] Formulario de contacto"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_advise_future_ce_confirm_id
msgid "[Somcomunitats.coop] Interested in Communities in your area"
......
......@@ -420,6 +420,33 @@ msgstr ""
" </div>\n"
" "
#. module: energy_communities
#: model:mail.template,body_html:energy_communities.email_templ_contact_platform_confirm_id
msgid ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hello,</p>\n"
" <p>Thank you for getting in touch.</p>\n"
" <p>We have received your email. We will contact you as soon as possible.</p>\n"
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Kaixo,</p>\n"
" <p>Eskerrik asko harremanetan jartzeagatik.</p>\n"
" <p>Zure emaila jaso dugu. Ahalik eta azkarren zurekin harremanetan jarriko gara.</p>\n"
" <br />\n"
" <p>Zinez,</p>\n"
" <p>Taldea Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
" </div>\n"
" "
#. module: energy_communities
#: model:mail.template,body_html:energy_communities.email_template_confirmation_company
msgid ""
......@@ -827,6 +854,11 @@ msgstr "Kontaktua"
msgid "Contact a existing CE"
msgstr "Jarri harremanetan lehendik dagoen CE batekin"
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_general_contact
msgid "Contact to the Platform"
msgstr "Jarri harremanetan plataformarekin"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_template_confirmation_voluntary_share
msgid "Contribute to ${object.company_id.name} Ref. ACSV${object.id}"
......@@ -2114,6 +2146,11 @@ msgstr "[Somcomunitats.coop] Jarri harremanetan Energia Komunitatearekin"
msgid "[Somcomunitats.coop] Community Newsletter Subscription Request"
msgstr "[Somcomunitats.coop] Buletinerako harpidetza Energia Komunitatearekin"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_contact_platform_confirm_id
msgid "[Somcomunitats.coop] Contact to the platform"
msgstr "[Somcomunitats.coop] Harremanetarako formularioa"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_advise_future_ce_confirm_id
msgid "[Somcomunitats.coop] Interested in Communities in your area"
......
......@@ -82,4 +82,6 @@ class CRMLeadService(Component):
)
elif source_xml_id == "ce_source_general_info":
template_external_id = "email_templ_lead_request_platform_news_confirm_id"
elif source_xml_id == "ce_source_general_contact":
template_external_id == "email_templ_contact_platform_confirm_id"
return template_external_id
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment