2018-01-16 06:58:15 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2018-01-16 11:34:37 +01:00
|
|
|
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
2018-01-16 06:58:15 +01:00
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
from flectra import fields, models
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
class MassMailingList(models.Model):
|
|
|
|
_inherit = 'mail.mass_mailing.list'
|
|
|
|
|
|
|
|
def _default_popup_content(self):
|
|
|
|
return """<div class="modal-header text-center">
|
2018-01-16 11:34:37 +01:00
|
|
|
<h3 class="modal-title mt8">Flectra Presents</h3>
|
2018-01-16 06:58:15 +01:00
|
|
|
</div>
|
|
|
|
<div class="o_popup_message">
|
|
|
|
<font>7</font>
|
|
|
|
<strong>Business Hacks</strong>
|
|
|
|
<span> to<br/>boost your marketing</span>
|
|
|
|
</div>
|
|
|
|
<p class="o_message_paragraph">Join our Marketing newsletter and get <strong>this white paper instantly</strong></p>"""
|
|
|
|
|
|
|
|
popup_content = fields.Html(string="Website Popup Content", translate=True, sanitize_attributes=False,
|
|
|
|
default=_default_popup_content)
|
|
|
|
popup_redirect_url = fields.Char(string="Website Popup Redirect URL", default='/')
|