-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from gisce/new_generic_email_template
Plantilla genérica de correo electrónico
- Loading branch information
Showing
23 changed files
with
552 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
18 changes: 18 additions & 0 deletions
18
poweremail_generic_template/data/banners/banner_generic_email_template_body.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
16 changes: 16 additions & 0 deletions
16
poweremail_generic_template/data/banners/banner_generic_email_template_css.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
18 changes: 18 additions & 0 deletions
18
poweremail_generic_template/data/banners/banner_generic_email_template_footer.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
16 changes: 16 additions & 0 deletions
16
poweremail_generic_template/data/banners/banner_generic_email_template_header.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
18 changes: 18 additions & 0 deletions
18
poweremail_generic_template/data/banners/banner_generic_email_template_preheader.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
18 changes: 18 additions & 0 deletions
18
poweremail_generic_template/data/banners/banner_generic_email_template_title.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
9 changes: 9 additions & 0 deletions
9
poweremail_generic_template/emails/generic/components/body/ca.mako
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
9 changes: 9 additions & 0 deletions
9
poweremail_generic_template/emails/generic/components/body/en.mako
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
9 changes: 9 additions & 0 deletions
9
poweremail_generic_template/emails/generic/components/body/es.mako
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
15 changes: 15 additions & 0 deletions
15
poweremail_generic_template/emails/generic/components/footer/en.mako
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
7 changes: 7 additions & 0 deletions
7
poweremail_generic_template/emails/generic/components/header/ca.mako
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
7 changes: 7 additions & 0 deletions
7
poweremail_generic_template/emails/generic/components/header/en.mako
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
7 changes: 7 additions & 0 deletions
7
poweremail_generic_template/emails/generic/components/header/es.mako
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
1 change: 1 addition & 0 deletions
1
poweremail_generic_template/emails/generic/components/preheader/ca.mako
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Preheader no configurado |
1 change: 1 addition & 0 deletions
1
poweremail_generic_template/emails/generic/components/preheader/en.mako
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
No preheader configured |
1 change: 1 addition & 0 deletions
1
poweremail_generic_template/emails/generic/components/preheader/es.mako
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Preheader no configurado |
Oops, something went wrong.