[FIX] pos_sale: sales team report without POS access rights

Steps to reproduce the bug:

- Give 'Administrator' rights for the Sales app and no rights for the Point of Sales app to the demo user
- Try to access CRM > Sales > Team Pipelines as Marc Demo

Bug:

Access Rights error on pos.session

opw:2184032

closes odoo/odoo#44637

X-original-commit: 77f0d6280e64074a3188dfb85d688ab758400128
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
This commit is contained in:
Damien Bouvy
2020-02-05 10:17:03 +00:00
committed by Goffin Simon
parent 6d0c8788e4
commit 541dc03f22
@@ -34,6 +34,7 @@
<field name="name">crm.team.kanban</field>
<field name="model">crm.team</field>
<field name="inherit_id" ref="sales_team.crm_team_salesteams_view_kanban"/>
<field name="groups_id" eval="[(4, ref('point_of_sale.group_pos_user'))]"/>
<field name="arch" type="xml">
<data>
<xpath expr="//t[@name='first_options']" position="before">