summaryrefslogtreecommitdiff
path: root/hrms_dashboard/views/dashboard_views.xml
blob: 9862e9c97225be065809157ee379b7f62b55e956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<odoo>
    <data>
        <record id="hr_action_dashboard" model="ir.actions.client">
            <field name="name">Dashboard</field>
            <field name="tag">hr_dashboard</field>
        </record>

<!--        <record id="dashboard_employee_broad_factor" model="ir.ui.view">-->
<!--            <field name="name">dashboard.employee.broad.factor</field>-->
<!--            <field name="model">hr.leave.type</field>-->
<!--            <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>-->
<!--            <field name="arch" type="xml">-->
<!--                <xpath expr="//field[@name='request_unit']" position="after">-->
<!--                    <field name="emp_broad_factor"/>-->
<!--                </xpath>-->
<!--            </field>-->
<!--        </record>-->

        <menuitem id="menu_hrms_dashboard"
                  name="Dashboard"
                  action="hr_action_dashboard"
                  web_icon="hrms_dashboard,static/description/dashboard_icon.png"
                  sequence="-100" groups="base.group_user"/>
    </data>

    <template id="assets_backend_dashboard" name="Hr Dashboard assets inherit" inherit_id="web.assets_backend">
        <xpath expr="." position="inside">
            <link rel="stylesheet" href="/hrms_dashboard/static/src/css/hrms_dashboard.css"/>
            <script type="text/javascript" src="/hrms_dashboard/static/src/js/hrms_dashboard.js"/>

            <link rel="stylesheet" href="/hrms_dashboard/static/src/css/lib/nv.d3.css"/>
            <script type="text/javascript" src="/hrms_dashboard/static/src/js/lib/d3.min.js"/>
        </xpath>
    </template>

    <record id="broad_factor_sort_order" model="ir.ui.view">
        <field name="name">hr.holidays.view.tree</field>
        <field name="model">hr.leave</field>
        <field name="inherit_id" ref="hr_holidays.hr_leave_view_tree"/>
        <field name="arch" type="xml">
             <xpath expr="//tree" position="attributes">
                <attribute name="default_order">duration_display</attribute>
            </xpath>
        </field>
    </record>

</odoo>