[IMP] improves the reporting view Expenses Analysis (add some measures to the table...
[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
5         <record id="view_hr_timesheet_sheet_graph" model="ir.ui.view">
6             <field name="name">hr.timesheet.sheet.sheet.graph</field>
7             <field name="model">hr_timesheet_sheet.sheet</field>
8             <field name="arch" type="xml">
9                 <graph orientation="horizontal" string="Available Attendance" type="bar">
10                     <field name="name"/>
11                     <field name="total_attendance" operator="+"/>
12                 </graph>
13             </field>
14         </record>
15
16         <record id="action_week_attendance_graph" model="ir.actions.act_window">
17             <field name="name">My Total Attendances By Week</field>
18             <field name="res_model">hr_timesheet_sheet.sheet</field>
19             <field name="view_type">form</field>
20             <field name="view_mode">graph</field>
21             <field name="domain">[('user_id','=',uid)]</field>
22             <field name="view_id" ref="hr_timesheet_sheet.view_hr_timesheet_sheet_graph"/>
23         </record>
24
25         <record id="board_hr_week_attendace_form" model="ir.ui.view">
26             <field name="name">board.hr.timesheet.sheet.form</field>
27             <field name="model">board.board</field>
28             <field name="inherit_id" ref="hr.board_hr_form"/>
29             <field name="arch" type="xml">
30                 <xpath expr="/form/board/column[2]" position="inside">
31                     <action name="%(action_week_attendance_graph)d" string="My Total Attendance By Week"/>
32                 </xpath>
33             </field>
34         </record>
35
36     </data>
37 </openerp>