summaryrefslogtreecommitdiff
path: root/addons/mail
diff options
context:
space:
mode:
authordavid <david.vidal@tecnativa.com>2021-03-10 17:23:12 +0000
committerdavid <david.vidal@tecnativa.com>2021-04-29 13:35:31 +0000
commit8bb046796f6fb89d13f3433f23a2de19a65c97a6 (patch)
treee0f4c55664d96766b9c8170d982d35b40f2e5e65 /addons/mail
parent4522ce11eb518e3b681824047255c0f8e34790c0 (diff)
[FIX] mail: tracking_value_ids field group
Give a coherent group as otherwise we could have access errors. Simple case: an Admin Rights user goes into a mail message form which is only available in debug mode which sets `group.no_one` into such user. This model is only readeable by `base.group_sytem` so an AccessError will raise. closes odoo/odoo#70107 X-original-commit: 8930e08213d0b6805e6fc91fa07561107ef43acc Signed-off-by: Simon Goffin (sig) <sig@openerp.com> Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/mail')
-rw-r--r--addons/mail/models/mail_message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/models/mail_message.py b/addons/mail/models/mail_message.py
index dd21275d779..8496a57958e 100644
--- a/addons/mail/models/mail_message.py
+++ b/addons/mail/models/mail_message.py
@@ -111,7 +111,7 @@ class Message(models.Model):
tracking_value_ids = fields.One2many(
'mail.tracking.value', 'mail_message_id',
string='Tracking values',
- groups="base.group_no_one",
+ groups="base.group_system",
help='Tracked values are stored in a separate model. This field allow to reconstruct '
'the tracking and to generate statistics on the model.')
# mail gateway