Files
odoo_source/addons/website_mass_mailing/models/res_config.py
T
Simon Lejeune 03aae0d3d5 [FIX] mass_mailing, website_mass_mailing: "group_website_popup_on_exit" group
This group was defined in the mass_mailing module but is only working when
you install website_mass_mailing. What this group does is allowing to insert
a newsletter snippet in the page, thus it has nothing to do in the mass_mailing
module which doesn't depend on website. Also, the snippet itself was already
defined in website_mass_mailing.

Moved all the things to website_mass_mailing.
2016-08-26 15:18:36 +02:00

15 lines
602 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class MassMailingConfiguration(models.TransientModel):
_inherit = 'mass.mailing.config.settings'
group_website_popup_on_exit = fields.Selection([
(0, 'Do not add extra content on website pages to encourage visitors to sign up'),
(1, 'Allow the use of a pop-up snippet on website to encourage visitors to sign up on a mass mailing list')
], string="Website Pop-up",
implied_group="website_mass_mailing.group_website_popup_on_exit")