[FIX] error reporting in _.sprintf
[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="action_hr_timesheet_sheet_graph" model="ir.actions.act_window">
6             <field name="name">Timesheets</field>
7             <field name="type">ir.actions.act_window</field>
8             <field name="res_model">hr_timesheet_sheet.sheet</field>
9             <field name="view_type">form</field>
10             <field name="view_mode">graph,tree</field>
11             <field name="view_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_graph"/>
12         </record>
13         <record id="hr_timesheet_sheet_tree" model="ir.ui.view">
14             <field name="name">hr.timesheet.sheet.tree.simplified.board</field>
15             <field name="model">hr_timesheet_sheet.sheet</field>
16             <field name="type">tree</field>
17             <field name="arch" type="xml">
18                 <tree colors="blue:state == 'draft';black:state in ('confirm','new');gray:state == 'done'" string="Timesheets">
19                     <field name="date_from"/>
20                     <field name="user_id"/>
21                     <field name="department_id" invisible="1"/>
22                     <field name="name"/>
23                     <field name="total_attendance" widget="float_time"/>
24                     <field name="total_timesheet" widget="float_time"/>
25                     <field name="state"/>
26                 </tree>
27             </field>
28         </record>
29         <record id="action_week_attendance_graph" model="ir.actions.act_window">
30             <field name="name">My Total Attendances By Week</field>
31             <field name="res_model">hr_timesheet_sheet.sheet</field>
32             <field name="view_type">form</field>
33             <field name="view_mode">graph</field>
34             <field name="domain">[('user_id','=',uid)]</field>
35             <field name="view_id" ref="hr_timesheet_sheet.view_hr_timesheet_sheet_graph"/>
36         </record>
37         <record id="board_hr_week_attendace_form" model="ir.ui.view">
38             <field name="name">board.hr.timesheet.sheet.form</field>
39             <field name="model">board.board</field>
40             <field name="inherit_id" ref="hr.board_hr_form"/>
41             <field name="type">form</field>
42             <field name="arch" type="xml">
43                 <xpath expr="/form/board/column[2]" position="inside">
44                     <action name="%(action_week_attendance_graph)d" string="My Total Attendance By Week"/>
45                 </xpath>
46             </field>
47         </record>
48     </data>
49 </openerp>