Skip to content

Commit

Permalink
Merge pull request #38 from gisce/new_generic_email_template
Browse files Browse the repository at this point in the history
Plantilla genérica de correo electrónico
  • Loading branch information
lcbautista authored Jul 18, 2024
2 parents 69a8bf1 + 7b9163e commit a0e7c7d
Show file tree
Hide file tree
Showing 23 changed files with 552 additions and 0 deletions.
Empty file.
24 changes: 24 additions & 0 deletions poweremail_generic_template/__terp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
{
"name": "poweremail_basic_template",
"description": """Implements a generic email template using the banners module""",
"version": "0-dev",
"author": "GISCE",
"category": "GISCEMaster",
"depends": [
"poweremail",
"report_banner"
],
"init_xml": [],
"demo_xml": [],
"update_xml": [
"data/banners/banner_generic_email_template_title.xml",
"data/banners/banner_generic_email_template_header.xml",
"data/banners/banner_generic_email_template_preheader.xml",
"data/banners/banner_generic_email_template_body.xml",
"data/banners/banner_generic_email_template_footer.xml",
"data/banners/banner_generic_email_template_css.xml",
],
"active": False,
"installable": True
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="report.banner" id="banner_generic_email_template_body">
<field name="name">Email genérico (TEMPLATE): cuerpo (body)</field>
<field name="code">generic_email_template_body</field>
<field name="start_date">2000-01-01</field>
<field name="end_date">2000-01-01</field>
<field name="sequence">0</field>
<field name="res_model">no.required</field>
<field name="description">Componente que constituye el cuerpo (body) en el email genérico.
Se debe utilizar como referencia de cómo configurar el banner para un correo en concreto.</field>
<field name="html[en_US]" file="emails/generic/components/body/en.mako"/>
<field name="html[ca_ES]" file="emails/generic/components/body/ca.mako"/>
<field name="html[es_ES]" file="emails/generic/components/body/es.mako"/>
</record>
</data>
</openerp>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="report.banner" id="banner_generic_email_template_css">
<field name="name">Email genérico: estilos/branding (CSS)</field>
<field name="code">generic_email_template_css</field>
<field name="start_date">2000-01-01</field>
<field name="sequence">0</field>
<field name="res_model">no.required</field>
<field name="description">Componente que constituye el estilo/branding (CSS) en el email genérico.</field>
<field name="html[en_US]" file="emails/generic/components/style.css"/>
<field name="html[ca_ES]" file="emails/generic/components/style.css"/>
<field name="html[es_ES]" file="emails/generic/components/style.css"/>
</record>
</data>
</openerp>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="report.banner" id="banner_generic_email_template_footer">
<field name="name">Email genérico: pie de correo (footer)</field>
<field name="code">generic_email_template_footer</field>
<field name="start_date">2000-01-01</field>
<field name="sequence">0</field>
<field name="res_model">no.required</field>
<field name="description">Componente que constituye el pie de correo (footer) en el email genérico.
Nota: este componente asume que el objeto tiene el campo "company_id". Si no lo tiene, se debe crear
otro banner especificando como acceder a dicho campo.</field>
<field name="html[en_US]" file="emails/generic/components/footer/en.mako"/>
<field name="html[ca_ES]" file="emails/generic/components/footer/en.mako"/>
<field name="html[es_ES]" file="emails/generic/components/footer/en.mako"/>
</record>
</data>
</openerp>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="report.banner" id="banner_generic_email_template_header">
<field name="name">Email genérico: cabecera (header)</field>
<field name="code">generic_email_template_header</field>
<field name="start_date">2000-01-01</field>
<field name="sequence">0</field>
<field name="res_model">no.required</field>
<field name="description">Componente que constituye la cabecera (header) en el email genérico.</field>
<field name="html[en_US]" file="emails/generic/components/header/en.mako"/>
<field name="html[ca_ES]" file="emails/generic/components/header/ca.mako"/>
<field name="html[es_ES]" file="emails/generic/components/header/es.mako"/>
</record>
</data>
</openerp>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="report.banner" id="banner_generic_email_template_preheader">
<field name="name">Email genérico (TEMPLATE): preheader</field>
<field name="code">generic_email_template_preheader</field>
<field name="start_date">2000-01-01</field>
<field name="end_date">2000-01-01</field>
<field name="sequence">0</field>
<field name="res_model">no.required</field>
<field name="description">Componente que constituye el preheader en el email genérico.
Se debe utilizar como referencia de cómo configurar el preheader para un correo en concreto.</field>
<field name="html[en_US]" file="emails/generic/components/preheader/en.mako"/>
<field name="html[ca_ES]" file="emails/generic/components/preheader/ca.mako"/>
<field name="html[es_ES]" file="emails/generic/components/preheader/es.mako"/>
</record>
</data>
</openerp>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="report.banner" id="banner_generic_email_template_title">
<field name="name">Email genérico (TEMPLATE): título (title)</field>
<field name="code">generic_email_template_title</field>
<field name="start_date">2000-01-01</field>
<field name="end_date">2000-01-01</field>
<field name="sequence">0</field>
<field name="res_model">no.required</field>
<field name="description">Componente que constituye el título (title) en el email genérico.
Se debe utilizar como referencia de cómo configurar el título para un correo en concreto.</field>
<field name="html[en_US]" file="emails/generic/components/title/en.mako"/>
<field name="html[ca_ES]" file="emails/generic/components/title/ca.mako"/>
<field name="html[es_ES]" file="emails/generic/components/title/es.mako"/>
</record>
</data>
</openerp>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<p>Hello!</p>
<p>This an example of the generic email.</p>
<p>Kind regards,</p>
</td>
</tr>
</table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<p>Bon dia!</p>
<p>Això és un exemple del correu electrònic genèric.</p>
<p>Atentament,</p>
</td>
</tr>
</table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<p>Hola!</p>
<p>Esto es un ejemplo del cuerpo del correo electrónico genérico.</p>
<p>Atentamente,</p>
</td>
</tr>
</table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<% company = object.company_id %>
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="content-block">
<span class="apple-link">${company.partner_id.address[0].street}</span>
<br> 📞 ${company.partner_id.address[0].phone} / ${company.partner_id.address[0].mobile}
<br> 📨 ${company.partner_id.address[0].email}
</td>
</tr>
<tr>
<td class="content-block powered-by">
<a href="${company.partner_id.website}">${company.partner_id.name}</a>.
</td>
</tr>
</table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="align-center" width="100%">
<img src="https://gisce.net/images/logo.png" height="100" alt="Logo empresa">
</td>
</tr>
</table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="align-center" width="100%">
<img src="https://gisce.net/images/logo.png" height="100" alt="Company logo">
</td>
</tr>
</table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="align-center" width="100%">
<img src="https://gisce.net/images/logo.png" height="100" alt="Logo empresa">
</td>
</tr>
</table>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Preheader no configurado
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No preheader configured
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Preheader no configurado
Loading

0 comments on commit a0e7c7d

Please sign in to comment.