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 string="Timesheets">
40 <field name="date_from"/>
41 <field name="user_id"/>
43 <field name="total_attendance"/>
44 <field name="total_timesheet"/>
50 <!-- Add in projectboard
51 <record id="act_hr_timesheet_sheet" model="ir.actions.act_window">
52 <field name="name">Timesheets</field>
53 <field name="res_model">hr_timesheet_sheet.sheet</field>
54 <field name="domain">[('state','<>','done'),('user_id','in',department_users_get())]</field>
55 <field name="view_type">form</field>
56 <field name="view_id" ref="hr_timesheet_sheet_tree"/>
58 <record id="board_project_timesheet_form" model="ir.ui.view">
59 <field name="name">board.project.timesheet.form</field>
60 <field name="model">board.board</field>
61 <field name="inherit_id" ref="project.board_project_manager_form"/>
62 <field name="type">form</field>
63 <field name="arch" type="xml">
64 <xpath expr="/form/hpaned/child1" position="inside">
65 <action colspan="4" height="150" name="%(act_hr_timesheet_sheet)d" string="User's timesheets" width="510"/>