Browse Source
Merge pull request #11 from incaser/responsive-date-mail-button-color
Merge pull request #11 from incaser/responsive-date-mail-button-color
Add in website config a field to select mail button colorpull/44/head
Yajo
9 years ago
13 changed files with 68 additions and 10 deletions
-
1website_mail_snippet_responsive/__init__.py
-
1website_mail_snippet_responsive/__openerp__.py
-
7website_mail_snippet_responsive/models/__init__.py
-
13website_mail_snippet_responsive/models/res_config.py
-
12website_mail_snippet_responsive/models/website.py
-
24website_mail_snippet_responsive/views/res_config_view.xml
-
2website_mail_snippet_responsive/views/snippet_1_col.xml
-
4website_mail_snippet_responsive/views/snippet_2_cols.xml
-
6website_mail_snippet_responsive/views/snippet_3_cols.xml
-
2website_mail_snippet_responsive/views/snippet_event_date.xml
-
2website_mail_snippet_responsive/views/snippet_hr.xml
-
2website_mail_snippet_responsive/views/snippet_img_text.xml
-
2website_mail_snippet_responsive/views/snippet_text_img.xml
@ -0,0 +1 @@ |
|||
from . import models |
@ -0,0 +1,7 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# (c) 2015 Antiun Ingeniería S.L. - Sergio Teruel |
|||
# (c) 2015 Antiun Ingeniería S.L. - Carlos Dauden |
|||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0. |
|||
|
|||
from . import res_config |
|||
from . import website |
@ -0,0 +1,13 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2016 Incaser Informatica S.L. - Sergio Teruel |
|||
# © 2016 Incaser Informatica S.L. - Carlos Dauden |
|||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html |
|||
|
|||
from openerp import models, fields |
|||
|
|||
|
|||
class WebsiteMailSippetResponsive(models.TransientModel): |
|||
_name = 'website.config.settings' |
|||
_inherit = ['website.config.settings'] |
|||
|
|||
mail_button_color = fields.Char(related='website_id.mail_button_color') |
@ -0,0 +1,12 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# (c) 2015 Antiun Ingeniería S.L. - Sergio Teruel |
|||
# (c) 2015 Antiun Ingeniería S.L. - Carlos Dauden |
|||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0. |
|||
|
|||
from openerp import models, fields |
|||
|
|||
|
|||
class Website(models.Model): |
|||
_inherit = 'website' |
|||
|
|||
mail_button_color = fields.Char(default='#00B518') |
@ -0,0 +1,24 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="view_website_config_settings" model="ir.ui.view"> |
|||
<field name="name">Email Application</field> |
|||
<field name="model">website.config.settings</field> |
|||
<field name="inherit_id" ref="website.view_website_config_settings"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//group[@string='Menu']" position="after"> |
|||
<group string="Mail"> |
|||
<label for="id" string="Mail button color"/> |
|||
<div> |
|||
<div> |
|||
<field name="mail_button_color" class="oe_inline"/> |
|||
</div> |
|||
</div> |
|||
</group> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue