1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="action_timesheet_report_all" model="ir.actions.act_window">
5 <field name="name">Timesheets by Month</field>
6 <field name="type">ir.actions.act_window</field>
7 <field name="res_model">timesheet.report</field>
8 <field name="view_type">form</field>
9 <field name="view_mode">graph,tree</field>
10 <field name="domain">[('user_id','=',uid), ('month', '=' , time.strftime('%m')), ('year', '=', time.strftime('%Y'))]</field>
11 <field name="view_id" ref="hr_timesheet_sheet.view_timesheet_report_graph"/>
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="board_hr_timesheet_form" model="ir.ui.view">
24 <field name="name">board.hr.timesheet.form</field>
25 <field name="model">board.board</field>
26 <field name="inherit_id" ref="hr.board_hr_form"/>
27 <field name="type">form</field>
28 <field name="arch" type="xml">
29 <xpath expr="/form/hpaned/child2" position="inside">
30 <action colspan="4" height="220" name="%(action_hr_timesheet_sheet_graph)d" string="Timesheets by Month" />
34 <record id="hr_timesheet_sheet_tree" model="ir.ui.view">
35 <field name="name">hr.timesheet.sheet.tree.simplified.board</field>
36 <field name="model">hr_timesheet_sheet.sheet</field>
37 <field name="type">tree</field>
38 <field name="arch" type="xml">
39 <tree colors="blue:state in ('draft');black:state in ('confirm','new');gray:state in('done')" string="Timesheets">
40 <field name="date_from"/>
41 <field name="user_id"/>
42 <field name="department_id" invisible="1"/>
44 <field name="total_attendance"/>
45 <field name="total_timesheet"/>
51 <!-- Add in projectboard
52 <record id="act_hr_timesheet_sheet" model="ir.actions.act_window">
53 <field name="name">Timesheets</field>
54 <field name="res_model">hr_timesheet_sheet.sheet</field>
55 <field name="domain">[('state','<>','done'),('user_id','in',department_users_get())]</field>
56 <field name="view_type">form</field>
57 <field name="view_id" ref="hr_timesheet_sheet_tree"/>
59 <record id="board_project_timesheet_form" model="ir.ui.view">
60 <field name="name">board.project.timesheet.form</field>
61 <field name="model">board.board</field>
62 <field name="inherit_id" ref="project.board_project_manager_form"/>
63 <field name="type">form</field>
64 <field name="arch" type="xml">
65 <xpath expr="/form/hpaned/child1" position="inside">
66 <action colspan="4" height="150" name="%(act_hr_timesheet_sheet)d" string="User's timesheets" width="510"/>