Files
odoo_source/addons/hr_presence/security/sms_security.xml
T
Ivan Yelizariev fc5607c4d2 [FIX] calendar_sms,hr_presence: add security rules for sms.templates
BEFORE: sms templates from these modules become inaccessible if any module from
the list below is installed

* crm_sms
* event_sms
* stock_sms
* enterprise/account_followup
* enterprise/marketing_automation_sms
* enterprise/sale_subscription

those modules add security rules for sms.templates, which adds additional
conditions to get access: at least one security rule has to be passed. So, we
need to add such rules to give access not only to Superuser

closes odoo/odoo#64661

X-original-commit: 23c82340c1cbd3d5a25d5c2ecec6c7d0f988cd90
Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
2021-01-18 10:11:11 +00:00

10 lines
439 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="ir_rule_sms_template_hr_manager" model="ir.rule">
<field name="name">SMS Template: hr manager CRUD on employee templates</field>
<field name="model_id" ref="sms.model_sms_template"/>
<field name="groups" eval="[(4, ref('hr.group_hr_manager'))]"/>
<field name="domain_force">[('model_id.model', '=', 'hr.employee')]</field>
</record>
</odoo>