<?xml version="1.0" encoding="utf-8"?> <odoo> <data> <record id="ticket_auditor" model="res.groups"> <field name="category_id" ref="sh_all_in_one_helpdesk.module_helpdesk_category"/> <field name="name">Auditor de tickets</field> </record> <record id="ticket_team_admin" model="res.groups"> <field name="category_id" ref="sh_all_in_one_helpdesk.module_helpdesk_category"/> <field name="name">Administrador del equipo</field> <field name="implied_ids" eval="[(4, ref('sh_all_in_one_helpdesk.helpdesk_group_team_leader'))]"/> </record> <record model="ir.rule" id="helpdesk_team_admin"> <field name="name">Helpdesk Administrador del equipo</field> <field name="model_id" ref="sh_all_in_one_helpdesk.model_helpdesk_team" /> <field name="global" eval="True" /> <field name="domain_force">['|',('team_admin_id','=',user.id),('team_admin_id','=',False)]</field> <field name="groups" eval="[(4, ref('helpdesk_morsa.ticket_team_admin'))]" /> </record> <record model="ir.rule" id="helpdesk_ticket_team_admin"> <field name="name">Helpdesk Ticket Team Admin</field> <field name="model_id" ref="sh_all_in_one_helpdesk.model_helpdesk_ticket" /> <field name="global" eval="True" /> <field name="domain_force">['|','|',('team_admin_id','=',user.id),('team_admin_id','=',False),('team_id.team_members','in',[user.id])]</field> <field name="groups" eval="[(4, ref('helpdesk_morsa.ticket_team_admin'))]" /> </record> <record model="ir.rule" id="helpdesk_ticket_team_captain"> <field name="name">Helpdesk Ticket Captain View</field> <field name="model_id" ref="sh_all_in_one_helpdesk.model_helpdesk_ticket" /> <field name="global" eval="True" /> <field name="domain_force">[('team_id.team_members','in',[user.id])]</field> <field name="groups" eval="[(4, ref('sh_all_in_one_helpdesk.helpdesk_group_team_leader'))]" /> </record> </data> </odoo>