+++ /dev/null
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-##############################################################################
-
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
+++ /dev/null
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-##############################################################################
-
-
-{
- 'name': 'Board for Human Reasources Management',
- 'version': '1.0',
- 'category': 'Board/Human Resources',
- 'description': """
-This module implements a dashboard for human resource management that includes:
- * My Current Timesheet
- * My Leaves
- * My Expenses
- """,
- '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,
- 'active': False,
-}
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<openerp>
- <data>
- <menuitem icon="terp-graph" id="base.dashboard" name="Dashboards" sequence="2" parent="base.reporting_menu"/>
- <menuitem
- id="menu_hr_deshboard"
- name="Human Resources"
- parent="base.dashboard"/>
-
- <record id="action_my_expense" model="ir.actions.act_window">
- <field name="name">My Expenses</field>
- <field name="res_model">hr.expense.expense</field>
- <field name="view_type">form</field>
- <field name="domain">[('state','in',('draft', 'confirm')),('user_id','=',uid)]</field>
- <field name="view_id" ref="hr_expense.view_editable_expenses_tree"/>
- </record>
-
- <record id="act_hr_evaluation_tree" model="ir.actions.act_window">
- <field name="name">My Current Evaluations</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">hr_evaluation.evaluation</field>
- <field name="view_type">form</field>
- <field name="view_id" eval="False"/>
- <field name="domain">[('state','!=','done'),('create_uid','=',uid)]</field>
- <field name="search_view_id" ref="hr_evaluation.view_hr_evaluation_tree"/>
- </record>
-
- <record id="action_view_holiday_status_board" model="ir.actions.act_window">
- <field name="name">My Leaves</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">hr.holidays</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="domain">[('user_id','=',uid)]</field>
- <field name="view_id" ref="hr_holidays.open_allocation_holidays"/>
- </record>
- <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"/>
- </record>
-
- <record id="action_hr_holidays_remaining_leaves_user_all" model="ir.actions.act_window">
- <field name="name">Remaining Leaves by User</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">hr.holidays.remaining.leaves.user</field>
- <field name="view_type">form</field>
- <field name="view_mode">graph,tree</field>
- <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>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="My Board">
- <hpaned>
- <child1>
- <action colspan="4" height="220" name="%(act_hr_evaluation_tree)d" string="My Current Evaluations" width="510"/>
- <action colspan="4" height="220" name="%(action_view_holiday_status_board)d" string="My Leaves"/>
- <action colspan="4" height="220" name="%(action_my_expense)d" string="My Expenses" />
- </child1>
- <child2>
- <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>
- </form>
- </field>
- </record>
-
- <record id="open_board_hr" model="ir.actions.act_window">
- <field name="name">Human Resources Dashboard</field>
- <field name="res_model">board.board</field>
- <field name="view_type">form</field>
- <field name="view_mode">form</field>
- <field name="usage">menu</field>
- <field name="view_id" ref="board_hr_form"/>
- </record>
-
- <menuitem
- action="open_board_hr"
- icon="terp-graph"
- id="menu_hr_project"
- parent="menu_hr_deshboard"
- sequence="4"/>
- </data>
-</openerp>