diff options
| author | mreficent <miquel.raich@eficent.com> | 2020-02-19 12:42:23 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2020-02-20 14:58:33 +0000 |
| commit | 3dffce34bf80c2a8d8682ef986d6daafa5bb0b7f (patch) | |
| tree | 3ec174f7aa3d672d07635d4f54401ff3d7fa3725 /addons/mail/models | |
| parent | 62c9227fdaac43329e48cd9446b40eee60dfeb1c (diff) | |
[IMP] fields: log warning for ignored selection
When a field is related, defining a selection or selection_add will
have no effect and the paramater is ignored.
Log a warning and fix all fields badly definied
Closes odoo/odoo#45716
closes odoo/odoo#45832
Related: odoo/enterprise#8613
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/mail/models')
| -rw-r--r-- | addons/mail/models/res_users.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/addons/mail/models/res_users.py b/addons/mail/models/res_users.py index d7b414eac7c..58037fe43b8 100644 --- a/addons/mail/models/res_users.py +++ b/addons/mail/models/res_users.py @@ -21,10 +21,8 @@ class Users(models.Model): alias_id = fields.Many2one('mail.alias', 'Alias', ondelete="set null", required=False, help="Email address internally associated with this user. Incoming "\ "emails will appear in the user's notifications.", copy=False, auto_join=True) - alias_contact = fields.Selection([ - ('everyone', 'Everyone'), - ('partners', 'Authenticated Partners'), - ('followers', 'Followers only')], string='Alias Contact Security', related='alias_id.alias_contact', readonly=False) + alias_contact = fields.Selection( + string='Alias Contact Security', related='alias_id.alias_contact', readonly=False) notification_type = fields.Selection([ ('email', 'Handle by Emails'), ('inbox', 'Handle in Odoo')], |
