2010-06-08 07:40:36 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2010-09-07 09:04:08 +00:00
|
|
|
|
|
|
|
<record id="action_hr_timesheet_sheet_graph" model="ir.actions.act_window">
|
2010-06-08 07:40:36 +00:00
|
|
|
<field name="name">Timesheets</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">graph,tree</field>
|
|
|
|
<field name="view_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_graph"/>
|
|
|
|
</record>
|
2010-06-08 08:14:58 +00:00
|
|
|
<record id="hr_timesheet_sheet_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.timesheet.sheet.tree.simplified.board</field>
|
|
|
|
<field name="model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2011-09-11 13:50:25 +00:00
|
|
|
<tree colors="blue:state == 'draft';black:state in ('confirm','new');gray:state == 'done'" string="Timesheets">
|
2010-06-08 08:14:58 +00:00
|
|
|
<field name="date_from"/>
|
|
|
|
<field name="user_id"/>
|
2010-08-09 10:40:10 +00:00
|
|
|
<field name="department_id" invisible="1"/>
|
2010-06-08 08:14:58 +00:00
|
|
|
<field name="name"/>
|
2011-09-07 13:08:49 +00:00
|
|
|
<field name="total_attendance" widget="float_time"/>
|
|
|
|
<field name="total_timesheet" widget="float_time"/>
|
2010-06-08 08:14:58 +00:00
|
|
|
<field name="state"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-09-23 07:19:13 +00:00
|
|
|
<record id="action_week_attendance_graph" model="ir.actions.act_window">
|
|
|
|
<field name="name">My Total Attendances By Week</field>
|
|
|
|
<field name="res_model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">graph</field>
|
|
|
|
<field name="domain">[('user_id','=',uid)]</field>
|
|
|
|
<field name="view_id" ref="hr_timesheet_sheet.view_hr_timesheet_sheet_graph"/>
|
|
|
|
</record>
|
|
|
|
<record id="board_hr_week_attendace_form" model="ir.ui.view">
|
|
|
|
<field name="name">board.hr.timesheet.sheet.form</field>
|
|
|
|
<field name="model">board.board</field>
|
|
|
|
<field name="inherit_id" ref="hr.board_hr_form"/>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="/form/hpaned/child2" position="inside">
|
|
|
|
<action colspan="4" height="220" name="%(action_week_attendance_graph)d" string="My Total Attendance By Week" />
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-08 07:40:36 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|