groups.xml 2.98 KB
Newer Older
1 2
<?xml version="1.0" encoding="utf-8"?>
<odoo>
3
    <data>
4
        
5

6
        <record id="ticket_auditor" model="res.groups">
7
            <field name="category_id" ref="sh_all_in_one_helpdesk.module_helpdesk_category"/>
8
            <field name="name">Auditor de tickets</field>
9
            <field name="menu_access" eval="[(4,ref('sh_all_in_one_helpdesk.helpdesk_main_menu'))]"/>
10
        </record>
11

12 13 14 15 16 17 18 19 20 21 22

        <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" />
23
            <field name="domain_force">['|',('team_admin_id','=',user.id),('team_admin_id','=',False)]</field>
24 25 26 27 28 29 30 31
            <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" />
32
            <field name="domain_force">['|','|',('team_admin_id','=',user.id),('team_admin_id','=',False),('team_id.team_members','in',[user.id])]</field>
33 34
            <field name="groups" eval="[(4, ref('helpdesk_morsa.ticket_team_admin'))]" />
        </record>
35 36 37 38 39 40 41 42 43

        <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>

44 45 46 47 48 49 50 51 52 53 54 55
        <record model="ir.rule" id="helpdesk_ticket_auditor">
            <field name="name">Auditor </field>
            <field name="model_id" ref="sh_all_in_one_helpdesk.model_helpdesk_ticket" />
            <field name="global" eval="False" />
            <field name="domain_force">[('1','=',1)]</field>
            <field name="groups" eval="[(4, ref('sh_all_in_one_helpdesk.helpdesk_group_manager'))]" />
            <field name="perm_read" eval="1"/>
            <field name="perm_write" eval="0"/>
            <field name="perm_create" eval="0"/>
            <field name="perm_unlink" eval="0"/>

        </record>
56 57 58 59 60

        <record id="helpdesk_extra_tools" model="res.groups">
            <field name="name">Editor de configuraciones helpdesk</field>
        </record>

61 62
    </data>
</odoo>