-
- Downloads
[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: c9e119a0
Showing
- addons/calendar_sms/security/sms_security.xml 2 additions, 1 deletionaddons/calendar_sms/security/sms_security.xml
- addons/crm_sms/security/sms_security.xml 2 additions, 1 deletionaddons/crm_sms/security/sms_security.xml
- addons/event_sms/security/sms_security.xml 2 additions, 1 deletionaddons/event_sms/security/sms_security.xml
- addons/hr_presence/security/sms_security.xml 2 additions, 1 deletionaddons/hr_presence/security/sms_security.xml
- addons/sms/tests/__init__.py 1 addition, 0 deletionsaddons/sms/tests/__init__.py
- addons/sms/tests/test_sms_template.py 60 additions, 0 deletionsaddons/sms/tests/test_sms_template.py
- addons/stock_sms/security/sms_security.xml 2 additions, 1 deletionaddons/stock_sms/security/sms_security.xml
Loading
Please register or sign in to comment