diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index 7d07182875d..f3248821b25 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -42,7 +42,7 @@ - never + none diff --git a/addons/mail/data/mail_demo.xml b/addons/mail/data/mail_demo.xml index 5a756e803d3..09415ba89e0 100644 --- a/addons/mail/data/mail_demo.xml +++ b/addons/mail/data/mail_demo.xml @@ -4,76 +4,76 @@ - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none - never + none diff --git a/addons/mail/mail_followers.py b/addons/mail/mail_followers.py index 5065f4377b4..4ad41f1812c 100644 --- a/addons/mail/mail_followers.py +++ b/addons/mail/mail_followers.py @@ -96,10 +96,10 @@ class mail_notification(osv.Model): if message.author_id and message.author_id.email == partner.email: continue # Partner does not want to receive any emails or is opt-out - if partner.notification_email_send == 'never': + if partner.notify_email == 'none': continue # Partner wants to receive emails, comments and notification - if partner.notification_email_send == 'always' and message.type not in ('email', 'comment', 'notification'): + if partner.notify_email == 'always' and message.type not in ('email', 'comment', 'notification'): continue notify_pids.append(partner.id) return notify_pids diff --git a/addons/mail/res_partner.py b/addons/mail/res_partner.py index 0bbe7bdb35f..3324a3d0084 100644 --- a/addons/mail/res_partner.py +++ b/addons/mail/res_partner.py @@ -30,8 +30,8 @@ class res_partner_mail(osv.Model): _mail_flat_thread = False _columns = { - 'notification_email_send': fields.selection([ - ('never', 'Never'), + 'notify_email': fields.selection([ + ('none', 'Never'), ('always', 'All Messages'), ], 'Receive Messages by Email', required=True, help="Policy to receive emails for new messages pushed to your personal Inbox:\n" @@ -40,7 +40,7 @@ class res_partner_mail(osv.Model): } _defaults = { - 'notification_email_send': lambda *args: 'always' + 'notify_email': lambda *args: 'always' } def message_get_suggested_recipients(self, cr, uid, ids, context=None): diff --git a/addons/mail/res_partner_view.xml b/addons/mail/res_partner_view.xml index faad4b2df60..5066d85e682 100644 --- a/addons/mail/res_partner_view.xml +++ b/addons/mail/res_partner_view.xml @@ -8,7 +8,7 @@ - +
diff --git a/addons/mail/res_users.py b/addons/mail/res_users.py index 645a77ea707..1859263b2b3 100644 --- a/addons/mail/res_users.py +++ b/addons/mail/res_users.py @@ -54,10 +54,10 @@ class res_users(osv.Model): init_res = super(res_users, self).__init__(pool, cr) # duplicate list to avoid modifying the original reference self.SELF_WRITEABLE_FIELDS = list(self.SELF_WRITEABLE_FIELDS) - self.SELF_WRITEABLE_FIELDS.extend(['notification_email_send', 'display_groups_suggestions']) + self.SELF_WRITEABLE_FIELDS.extend(['notify_email', 'display_groups_suggestions']) # duplicate list to avoid modifying the original reference self.SELF_READABLE_FIELDS = list(self.SELF_READABLE_FIELDS) - self.SELF_READABLE_FIELDS.extend(['notification_email_send', 'alias_domain', 'alias_name', 'display_groups_suggestions']) + self.SELF_READABLE_FIELDS.extend(['notify_email', 'alias_domain', 'alias_name', 'display_groups_suggestions']) return init_res def _auto_init(self, cr, context=None): diff --git a/addons/mail/res_users_view.xml b/addons/mail/res_users_view.xml index 0367a0a5cdb..eef2924134f 100644 --- a/addons/mail/res_users_view.xml +++ b/addons/mail/res_users_view.xml @@ -10,7 +10,7 @@ - + @@ -24,7 +24,7 @@ - + - never + none Vivegnis 4683 diff --git a/addons/website_partner/website_partner_demo.xml b/addons/website_partner/website_partner_demo.xml index 432c39d626b..1cf6d034f8d 100644 --- a/addons/website_partner/website_partner_demo.xml +++ b/addons/website_partner/website_partner_demo.xml @@ -234,15 +234,15 @@ Best Designers has now emerged serving the Small and Medium Business – SMB’s - never + none - never + none - never + none