2010-06-08 07:40:36 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2010-09-09 10:38:30 +00:00
|
|
|
<menuitem id="base.menu_hr_dasboard" name="Dashboard" parent="hr.menu_hr_reporting" sequence="0" groups="base.group_system,base.group_hr_manager,base.group_hr_user"/>
|
2010-09-13 16:26:41 +00:00
|
|
|
<menuitem
|
2010-09-09 10:38:30 +00:00
|
|
|
action="hr.open_board_hr"
|
|
|
|
icon="terp-graph"
|
|
|
|
id="base.menu_hr_project"
|
|
|
|
parent="base.menu_hr_dasboard"
|
|
|
|
sequence="4"/>
|
2010-09-07 09:04:08 +00:00
|
|
|
|
2010-08-09 10:40:10 +00:00
|
|
|
<record id="action_timesheet_report_all" model="ir.actions.act_window">
|
|
|
|
<field name="name">Timesheets by Month</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">timesheet.report</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">graph,tree</field>
|
|
|
|
<field name="domain">[('user_id','=',uid), ('month', '=' , time.strftime('%m')), ('year', '=', time.strftime('%Y'))]</field>
|
|
|
|
<field name="view_id" ref="hr_timesheet_sheet.view_timesheet_report_graph"/>
|
2010-09-07 09:04:08 +00:00
|
|
|
</record>
|
2010-06-08 07:40:36 +00:00
|
|
|
|
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-09-07 09:04:08 +00:00
|
|
|
<record id="view_employee_attendance_graph" model="ir.ui.view">
|
|
|
|
<field name="name">Employee Attendance Graph</field>
|
|
|
|
<field name="model">timesheet.report</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph string="Employee Attendances" type="bar">
|
|
|
|
<field name="user_id" />
|
|
|
|
<field name="total_attendance" operator="+"/>
|
|
|
|
<field name="total_timesheet" operator="+"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_employee_attendance_graph" model="ir.actions.act_window">
|
|
|
|
<field name="name">Employee Attendance Graph</field>
|
|
|
|
<field name="res_model">timesheet.report</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">graph</field>
|
|
|
|
<field name="view_id" ref="view_employee_attendance_graph"/>
|
|
|
|
</record>
|
|
|
|
|
2010-06-08 07:40:36 +00:00
|
|
|
<record id="board_hr_timesheet_form" model="ir.ui.view">
|
|
|
|
<field name="name">board.hr.timesheet.form</field>
|
|
|
|
<field name="model">board.board</field>
|
2010-09-07 09:04:08 +00:00
|
|
|
<field name="inherit_id" ref="hr.board_hr_form"/>
|
2010-06-08 07:40:36 +00:00
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-09-07 09:04:08 +00:00
|
|
|
<xpath expr="/form/hpaned/child2" position="inside">
|
|
|
|
<action colspan="4" height="220" name="%(action_employee_attendance_graph)d" string="Employee Attendances" />
|
|
|
|
</xpath>
|
2010-06-08 07:40:36 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-09-07 09:04:08 +00:00
|
|
|
|
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">
|
2010-07-20 11:14:02 +00:00
|
|
|
<tree colors="blue:state in ('draft');black:state in ('confirm','new');gray:state in('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"/>
|
|
|
|
<field name="total_attendance"/>
|
|
|
|
<field name="total_timesheet"/>
|
|
|
|
<field name="state"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-08 07:40:36 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|