[IMP]: Improve board_hr : Timesheet by Month graph.

bzr revid: rch_open_erp-20100415114528-0p8nw0v7oyq3k0hj
This commit is contained in:
rch (Open ERP)
2010-04-15 17:15:28 +05:30
parent 52762de5bb
commit 761a79045f
3 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ This module implements a dashboard for human resource management that includes:
""",
'author': 'Tiny',
'depends': [ 'project_issue','board','hr_expense','hr_timesheet_sheet','hr_holidays'
],
, 'hr_evaluation'],
'update_xml': ['board_hr_view.xml'],
'demo_xml': [],
'installable': True,
+9 -1
View File
@@ -53,6 +53,14 @@
<field name="domain">[('user_id','=',uid)]</field>
<field name="view_id" ref="hr_holidays.view_hr_holidays_remaining_leaves_user_graph"/>
</record>
<record id="action_hr_timesheet_sheet_graph" model="ir.actions.act_window">
<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>
<record id="board_hr_form" model="ir.ui.view">
<field name="name">board.hr.form</field>
<field name="model">board.board</field>
@@ -66,7 +74,7 @@
<action colspan="4" height="220" name="%(action_my_expense)d" string="My Expenses" />
</child1>
<child2>
<action colspan="4" height="220" name="%(action_timesheet_report_all)d" string="Timesheets by Month" />
<action colspan="4" height="220" name="%(action_hr_timesheet_sheet_graph)d" string="Timesheets by Month" />
<action colspan="4" height="220" name="%(action_hr_holidays_remaining_leaves_user_all)d" string="Reamining Leaves by Type and User" />
</child2>
</hpaned>
@@ -20,7 +20,18 @@
</tree>
</field>
</record>
<record id="hr_timesheet_sheet_graph" model="ir.ui.view">
<field name="name">hr.timesheet.sheet.graph</field>
<field name="model">hr_timesheet_sheet.sheet</field>
<field name="type">graph</field>
<field name="arch" type="xml">
<graph string="Timesheets" type="bar">
<field name="name"/>
<field name="total_attendance" operator="+"/>
<field name="total_timesheet" operator="+"/>
</graph>
</field>
</record>
<record id="hr_timesheet_account_form" model="ir.ui.view">
<field name="name">hr.timesheet.account.form</field>
<field name="model">hr_timesheet_sheet.sheet.account</field>