summaryrefslogtreecommitdiff
path: root/addons/website_mass_mailing/models/res_users.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website_mass_mailing/models/res_users.py')
-rw-r--r--addons/website_mass_mailing/models/res_users.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/website_mass_mailing/models/res_users.py b/addons/website_mass_mailing/models/res_users.py
new file mode 100644
index 00000000000..6024234dfb9
--- /dev/null
+++ b/addons/website_mass_mailing/models/res_users.py
@@ -0,0 +1,13 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from odoo import fields, models
+
+
+class ResUsers(models.Model):
+ _inherit = 'res.users'
+
+ has_group_website_popup_on_exit = fields.Boolean(
+ 'Use subscription pop up on the website',
+ compute='_compute_groups_id', inverse='_inverse_groups_id',
+ group_xml_id='website_mass_mailing.group_website_popup_on_exit')