diff options
| author | mcm-odoo <mcm@odoo.com> | 2019-11-07 12:37:34 +0000 |
|---|---|---|
| committer | mcm-odoo <mcm@odoo.com> | 2019-11-22 14:27:10 +0000 |
| commit | fea8d452b28d1ec004ae3cf9988cfbde2964c92b (patch) | |
| tree | 6cc3b4bb14dae4f0b07516858c26da6c3f4ddfff /addons | |
| parent | 3cf3c2dbd40a8725284608f7b9cdffd65b0c7cc0 (diff) | |
[FIX] im_livechat: allow manager to read all sessions
Managers could see only their sessions like other operators.
Now they can see all the sessions so they can check and help the operators.
task-2048498
closes odoo/odoo#41175
X-original-commit: 6ae791335a1986aa4cc72f7ed9aadd471c1774c5
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/im_livechat/security/im_livechat_channel_security.xml | 10 | ||||
| -rw-r--r-- | addons/mail/security/mail_security.xml | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/addons/im_livechat/security/im_livechat_channel_security.xml b/addons/im_livechat/security/im_livechat_channel_security.xml index 8a2b78ce614..be4753f9d4a 100644 --- a/addons/im_livechat/security/im_livechat_channel_security.xml +++ b/addons/im_livechat/security/im_livechat_channel_security.xml @@ -20,6 +20,16 @@ <field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> </record> + <record id="im_livechat_rule_manager_read_all_mail_channel" model="ir.rule"> + <field name="name">Livechat: Administrator: read all livechat channel</field> + <field name="model_id" ref="model_mail_channel"/> + <field name="groups" eval="[(4, ref('im_livechat_group_manager'))]"/> + <field name="domain_force">[('channel_type', '=', 'livechat')]</field> + <field name="perm_read" eval="True"/> + <field name="perm_create" eval="False"/> + <field name="perm_write" eval="False"/> + <field name="perm_unlink" eval="False"/> + </record> <data noupdate="1"> <record id="base.default_user" model="res.users"> diff --git a/addons/mail/security/mail_security.xml b/addons/mail/security/mail_security.xml index f4493dad93a..3ffe43e35eb 100644 --- a/addons/mail/security/mail_security.xml +++ b/addons/mail/security/mail_security.xml @@ -5,6 +5,7 @@ <record id="mail_channel_rule" model="ir.rule"> <field name="name">Mail.channel: access only public and joined groups</field> <field name="model_id" ref="model_mail_channel"/> + <field name="groups" eval="[(4, ref('base.group_user')), (4, ref('base.group_portal')), (4, ref('base.group_public'))]"/> <field name="domain_force">['|', '|', ('public', '=', 'public'), '&', ('public', '=', 'private'), ('channel_partner_ids', 'in', [user.partner_id.id]), |
