diff options
| author | Jérémy Hennecart <jeh@odoo.com> | 2020-04-30 08:18:17 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2021-03-29 12:57:32 +0000 |
| commit | 157eee07ba74de1dad30510a85411eeff2b2dcf1 (patch) | |
| tree | c2d2c5d7a98021a42499466498ef2cfea7b4b0e8 /addons/sms/tests/__init__.py | |
| parent | ddac1aa54ada0866a66fb8d7f90a3af729f6ae2d (diff) | |
[FIX] sms, various: do not restrict read access on sms.template
sms.template model has several record rules to give access to templates
linked to models managed by certain groups (like crm.lead for sales managers)
These record rules were meant to restrict access to certain model to create,
write and unlink, but not read.
This is leading to issues when trying to read a template on other models.
Indeed people should always be able read sms.template content.
Unit test were also added to the sms module to ensure that a member of
group_user can always read a sms template.
Unit test is added to ensure admin always has full control on sms.templates.
Task ID-2191254
COM PR odoo/odoo#68445
ENT PR odoo/enterprise#17340
X-original-commit: c9e119a096ba5410e0ab9767207192eb4b7822a2
Diffstat (limited to 'addons/sms/tests/__init__.py')
| -rw-r--r-- | addons/sms/tests/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/sms/tests/__init__.py b/addons/sms/tests/__init__.py index 511e649c9e2..609586bec6b 100644 --- a/addons/sms/tests/__init__.py +++ b/addons/sms/tests/__init__.py @@ -2,3 +2,4 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from . import common +from . import test_sms_template |
