Launchpad automatic translations update.
[odoo/odoo.git] / addons / hr_timesheet_sheet / board_hr_timesheet_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4     <menuitem
5         id="base.menu_hr_dasboard" name="Dashboard" parent="hr.menu_hr_reporting" 
6         sequence="0"/>
7     <menuitem
8             action="hr.open_board_hr"
9             icon="terp-graph"
10             id="base.menu_hr_project"
11             parent="base.menu_hr_dasboard"
12             sequence="4"/>
13
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"/>
21         </record>
22
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"/>
32                     <field name="name"/>
33                     <field name="total_attendance"/>
34                     <field name="total_timesheet"/>
35                     <field name="state"/>
36                 </tree>
37             </field>
38         </record>
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"/>
46         </record>
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" />
55                 </xpath>
56             </field>
57         </record>
58         <menuitem
59             action="hr.open_board_hr_manager"
60             icon="terp-graph"
61             id="base.menu_hr_manager"
62             parent="base.menu_hr_dasboard"
63             groups = "base.group_hr_manager"
64             sequence="5"/>
65     </data>
66 </openerp>