-
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 #41 from gisce/add_template_company_banner
Añadir banner company para la plantilla
- Loading branch information
Showing
6 changed files
with
51 additions
and
6 deletions.
There are no files selected for viewing
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
16 changes: 16 additions & 0 deletions
16
poweremail_generic_template/data/banners/banner_generic_email_template_company.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_company"> | ||
<field name="name">Email genérico (TEMPLATE): compañia (company)</field> | ||
<field name="code">generic_email_template_company</field> | ||
<field name="start_date">2000-01-01</field> | ||
<field name="sequence">0</field> | ||
<field name="res_model">no.required</field> | ||
<field name="description">La compañia a la que hace referencia la plantilla</field> | ||
<field name="html[en_US]" file="emails/generic/components/company/en.mako"/> | ||
<field name="html[ca_ES]" file="emails/generic/components/company/en.mako"/> | ||
<field name="html[es_ES]" file="emails/generic/components/company/en.mako"/> | ||
</record> | ||
</data> | ||
</openerp> |
1 change: 1 addition & 0 deletions
1
poweremail_generic_template/emails/generic/components/company/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 @@ | ||
object.company_id |
2 changes: 1 addition & 1 deletion
2
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
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
15 changes: 15 additions & 0 deletions
15
..._generic_template/migrations/5.0.24.9.0/post-0001_load_generic_template_company_banner.py
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 @@ | ||
# -*- coding: utf-8 -*- | ||
from oopgrade.oopgrade import load_data | ||
from tools import config | ||
|
||
|
||
def up(cursor, installed_version): | ||
if not installed_version or config.updating_all: | ||
return | ||
load_data(cursor, 'poweremail_generic_template', 'data/banners/banner_generic_email_template_company.xml') | ||
|
||
|
||
def down(cursor, installed_version): | ||
pass | ||
|
||
migrate = up |