1 <?xml version="1.0" encoding="utf-8"?>
5 id="base.menu_hr_dasboard" name="Dashboard" parent="hr.menu_hr_reporting"
8 action="hr.open_board_hr"
10 id="base.menu_hr_project"
11 parent="base.menu_hr_dasboard"
14 <record id="action_hr_timesheet_sheet_graph" model="ir.actions.act_window">
15 <field name="name">Timesheets</field>
16 <field name="type">ir.actions.act_window</field>
17 <field name="res_model">hr_timesheet_sheet.sheet</field>
18 <field name="view_type">form</field>
19 <field name="view_mode">graph,tree</field>
20 <field name="view_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_graph"/>
23 <record id="hr_timesheet_sheet_tree" model="ir.ui.view">
24 <field name="name">hr.timesheet.sheet.tree.simplified.board</field>
25 <field name="model">hr_timesheet_sheet.sheet</field>
26 <field name="type">tree</field>
27 <field name="arch" type="xml">
28 <tree colors="blue:state in ('draft');black:state in ('confirm','new');gray:state in('done')" string="Timesheets">
29 <field name="date_from"/>
30 <field name="user_id"/>
31 <field name="department_id" invisible="1"/>
33 <field name="total_attendance"/>
34 <field name="total_timesheet"/>
39 <record id="action_week_attendance_graph" model="ir.actions.act_window">
40 <field name="name">My Total Attendances By Week</field>
41 <field name="res_model">hr_timesheet_sheet.sheet</field>
42 <field name="view_type">form</field>
43 <field name="view_mode">graph</field>
44 <field name="domain">[('user_id','=',uid)]</field>
45 <field name="view_id" ref="hr_timesheet_sheet.view_hr_timesheet_sheet_graph"/>
47 <record id="board_hr_week_attendace_form" model="ir.ui.view">
48 <field name="name">board.hr.timesheet.sheet.form</field>
49 <field name="model">board.board</field>
50 <field name="inherit_id" ref="hr.board_hr_form"/>
51 <field name="type">form</field>
52 <field name="arch" type="xml">
53 <xpath expr="/form/hpaned/child2" position="inside">
54 <action colspan="4" height="220" name="%(action_week_attendance_graph)d" string="My Total Attendance By Week" />
59 action="hr.open_board_hr_manager"
61 id="base.menu_hr_manager"
62 parent="base.menu_hr_dasboard"
63 groups = "base.group_hr_manager"