-
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.
- Loading branch information
Showing
6 changed files
with
44 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/ca.mako"/> | ||
<field name="html[es_ES]" file="emails/generic/components/company/es.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
14 changes: 14 additions & 0 deletions
14
..._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,14 @@ | ||
# -*- coding: utf-8 -*- | ||
from oopgrade.oopgrade import load_data | ||
|
||
|
||
def up(cursor, installed_version): | ||
if not installed_version: | ||
return | ||
load_data(cursor, 'poweremail_generic_template', 'data/banners/banner_generic_email_template_company.xml') | ||
|
||
|
||
def down(cursor, installed_version): | ||
pass | ||
|
||
migrate = up |