2008-07-01 15:58:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2008-09-10 17:56:00 +00:00
|
|
|
<openerp>
|
2008-06-29 08:26:07 +00:00
|
|
|
<data>
|
2011-08-31 11:51:14 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<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>
|
|
|
|
<field name="arch" type="xml">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Timesheet by Accounts">
|
2012-06-07 17:30:07 +00:00
|
|
|
<group col="4">
|
|
|
|
<field name="sheet_id"/>
|
|
|
|
<field name="name" groups="analytic.group_analytic_accounting"/>
|
|
|
|
<field name="total" sum="Total"/>
|
|
|
|
<field name="invoice_rate"/>
|
|
|
|
</group>
|
2008-06-29 08:26:07 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-01-06 06:07:36 +00:00
|
|
|
<record id="hr_timesheet_account_filter" model="ir.ui.view">
|
|
|
|
<field name="name">hr.timesheet.account.filter</field>
|
|
|
|
<field name="model">hr_timesheet_sheet.sheet.account</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Account">
|
2012-07-20 11:33:33 +00:00
|
|
|
<field name="name" groups="analytic.group_analytic_accounting"/>
|
|
|
|
<field name="invoice_rate"/>
|
2012-07-31 11:28:04 +00:00
|
|
|
<field name="sheet_id" />
|
2011-01-06 06:07:36 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="hr_timesheet_account_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.timesheet.account.tree</field>
|
|
|
|
<field name="model">hr_timesheet_sheet.sheet.account</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Timesheet by Accounts">
|
|
|
|
<field name="sheet_id"/>
|
2010-10-04 11:13:44 +00:00
|
|
|
<field name="name" groups="analytic.group_analytic_accounting"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="total" sum="Total"/>
|
|
|
|
<field name="invoice_rate"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-02-01 11:09:48 +00:00
|
|
|
|
2012-10-26 07:57:15 +00:00
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="act_hr_timesheet_sheet_sheet_2_hr_analytic_timesheet">
|
|
|
|
<field name="context">{'search_default_sheet_id': [active_id]}</field>
|
|
|
|
<field name="name">Timesheet Activities</field>
|
|
|
|
<field name="res_model">hr.analytic.timesheet</field>
|
|
|
|
<field name="src_model">hr_timesheet_sheet.sheet</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="act_hr_timesheet_sheet_sheet_2_hr_attendance">
|
|
|
|
<field name="context">{'search_default_sheet_id': [active_id]}</field>
|
|
|
|
<field name="name">Attendances</field>
|
|
|
|
<field name="res_model">hr.attendance</field>
|
|
|
|
<field name="src_model">hr_timesheet_sheet.sheet</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="hr_timesheet_sheet_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.timesheet.sheet.form</field>
|
|
|
|
<field name="model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="arch" type="xml">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Timesheet">
|
2012-06-04 12:11:39 +00:00
|
|
|
<header>
|
2012-09-03 05:21:42 +00:00
|
|
|
<button name="button_confirm" states="draft" string="Submit to Manager" type="object" class="oe_highlight"/>
|
2012-06-20 10:12:05 +00:00
|
|
|
<button name="done" states="confirm" string="Approve" type="workflow" groups="base.group_hr_user" class="oe_highlight"/>
|
2012-06-21 07:09:59 +00:00
|
|
|
<button name="action_set_to_draft" states="done" string="Set to Draft" type="object" />
|
|
|
|
<button name="cancel" states="confirm" string="Refuse" type="workflow" groups="base.group_hr_user" />
|
2012-06-04 10:50:56 +00:00
|
|
|
<field name="state" widget="statusbar" statusbar_visible="new,confirm,done"/>
|
2012-06-04 12:11:39 +00:00
|
|
|
</header>
|
2012-06-07 17:30:07 +00:00
|
|
|
<sheet>
|
2012-10-26 07:57:15 +00:00
|
|
|
<div class="oe_right oe_button_box" name="buttons">
|
|
|
|
<button type="action"
|
|
|
|
name="%(act_hr_timesheet_sheet_sheet_2_hr_analytic_timesheet)d"
|
2014-03-26 12:00:56 +00:00
|
|
|
class="oe_stat_button"
|
2014-03-28 13:30:51 +00:00
|
|
|
icon="fa-clock-o">
|
|
|
|
<field name="timesheet_activity_count" widget="statinfo" string="Timesheet" help="Timesheet Activities"/>
|
2014-03-26 12:00:56 +00:00
|
|
|
</button>
|
2012-10-26 07:57:15 +00:00
|
|
|
<button type="action" groups="base.group_hr_attendance"
|
2014-03-27 11:37:20 +00:00
|
|
|
class="oe_stat_button" icon="fa-users"
|
|
|
|
name="%(act_hr_timesheet_sheet_sheet_2_hr_attendance)d">
|
|
|
|
<field name="attendance_count" widget="statinfo" string="Attendances"/>
|
|
|
|
</button>
|
2012-10-26 07:57:15 +00:00
|
|
|
</div>
|
|
|
|
<div class="oe_title">
|
|
|
|
<label for="employee_id" class="oe_edit_only"/>
|
2012-12-12 16:27:38 +00:00
|
|
|
<h1><field name="employee_id" on_change="onchange_employee_id(employee_id)" class="oe_inline"/></h1>
|
2012-12-12 15:21:26 +00:00
|
|
|
<field name="user_id" invisible="1"/>
|
2012-10-26 07:57:15 +00:00
|
|
|
</div>
|
2012-06-25 08:43:52 +00:00
|
|
|
<group>
|
|
|
|
<group>
|
2012-10-12 15:20:01 +00:00
|
|
|
<label for="date_from" string="Timesheet Period"/>
|
2012-10-24 11:37:28 +00:00
|
|
|
<div><field name="date_from" class="oe_inline"/> to <field name="date_to" class="oe_inline"/></div>
|
2012-10-12 15:20:01 +00:00
|
|
|
<field name="name" invisible="1"/>
|
2012-10-24 11:37:28 +00:00
|
|
|
<field name="department_id" invisible="1"/>
|
2012-06-25 08:43:52 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
|
|
</group>
|
2012-10-26 07:57:15 +00:00
|
|
|
<group groups="base.group_hr_attendance">
|
|
|
|
<field name="total_attendance" widget="float_time"/>
|
2012-06-25 08:43:52 +00:00
|
|
|
<field name="total_timesheet" widget="float_time"/>
|
2012-10-26 07:57:15 +00:00
|
|
|
<field name="total_difference" widget="float_time"/>
|
2012-06-25 08:43:52 +00:00
|
|
|
</group>
|
2010-06-25 08:46:21 +00:00
|
|
|
</group>
|
2012-06-07 17:30:07 +00:00
|
|
|
<notebook>
|
2012-10-26 09:43:38 +00:00
|
|
|
<page string="Summary">
|
2012-12-17 11:14:02 +00:00
|
|
|
<widget type="weekly_timesheet" attrs="{'readonly': [['state', 'not in', ['new', 'draft']]]}">
|
2012-09-28 12:45:38 +00:00
|
|
|
</widget>
|
|
|
|
</page>
|
2012-10-26 09:43:38 +00:00
|
|
|
<page string="Details">
|
2012-12-12 15:21:26 +00:00
|
|
|
<field context="{'employee_id': employee_id, 'user_id':user_id, 'timesheet_date_from': date_from, 'timesheet_date_to': date_to}" name="timesheet_ids" nolabel="1">
|
2012-10-26 07:57:15 +00:00
|
|
|
<tree editable="top" string="Timesheet Activities">
|
2012-10-01 15:46:05 +00:00
|
|
|
<field name="date"/>
|
2012-10-10 15:22:58 +00:00
|
|
|
<field domain="[('type','in',['normal', 'contract']), ('state', '<>', 'close'),('use_timesheets','=',1)]" name="account_id" on_change="on_change_account_id(account_id, user_id)" context="{'default_use_timesheets': 1}"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="name"/>
|
2012-10-26 14:37:41 +00:00
|
|
|
<field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" widget="float_time" string="Hours" sum="Hours"/>
|
2011-09-10 12:43:55 +00:00
|
|
|
<field name="to_invoice" widget="selection"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field invisible="1" name="journal_id"/>
|
2010-10-04 23:23:08 +00:00
|
|
|
<field invisible="1" name="product_id" domain="[('type','=','service')]" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)"/>
|
|
|
|
<field invisible="1" name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)"/>
|
2010-06-25 08:46:21 +00:00
|
|
|
<field invisible="1" name="amount"/>
|
|
|
|
<field invisible="1" name="general_account_id"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field invisible="1" name="user_id" required="1"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Timesheet Activities">
|
2009-04-06 14:04:58 +00:00
|
|
|
<field name="date"/>
|
2012-10-10 15:22:58 +00:00
|
|
|
<field domain="[('type','=','normal'), ('state', '<>', 'close')]" name="account_id" on_change="on_change_account_id(account_id, user_id)"/>
|
2009-04-06 14:04:58 +00:00
|
|
|
<field name="name"/>
|
2010-10-04 23:23:08 +00:00
|
|
|
<field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" widget="float_time"/>
|
2009-04-06 14:04:58 +00:00
|
|
|
<field name="to_invoice"/>
|
2010-06-25 08:46:21 +00:00
|
|
|
<field name="journal_id"/>
|
2010-10-04 23:23:08 +00:00
|
|
|
<field name="product_id" domain="[('type','=','service')]" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)"/>
|
|
|
|
<field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)"/>
|
2009-04-06 14:04:58 +00:00
|
|
|
<field name="amount"/>
|
|
|
|
<field name="general_account_id"/>
|
|
|
|
<field name="user_id" required="1"/>
|
|
|
|
</form>
|
2008-06-29 08:26:07 +00:00
|
|
|
</field>
|
|
|
|
</page>
|
2012-10-26 07:57:15 +00:00
|
|
|
<page string="Attendances" groups="base.group_hr_attendance">
|
|
|
|
<group>
|
2014-06-06 10:55:22 +00:00
|
|
|
<field context="{'default_employee_id': employee_id, 'user_id':user_id}" name="attendances_ids" nolabel="1">
|
2012-10-26 07:57:15 +00:00
|
|
|
<tree string="Attendances" editable="bottom">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="action"/>
|
|
|
|
<field invisible="1" name="employee_id"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
<group>
|
|
|
|
<label for="state_attendance"/>
|
|
|
|
<div>
|
|
|
|
<field name="state_attendance"/>
|
|
|
|
<button name="attendance_action_change" attrs="{'invisible': [('state_attendance', '=', 'present')]}" type="object" string="Sign In" class="oe_link"/>
|
|
|
|
<button name="attendance_action_change" attrs="{'invisible': ['|', ('state_attendance','=',False), ('state_attendance', '=', 'absent')]}" type="object" string="Sign Out" class="oe_link"/>
|
|
|
|
</div>
|
|
|
|
</group>
|
|
|
|
</group>
|
2012-10-24 11:37:28 +00:00
|
|
|
<field name="period_ids">
|
2009-12-23 11:43:11 +00:00
|
|
|
<tree colors="red:total_difference<0.1;blue:total_difference>=0.1" string="Period">
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="name"/>
|
2012-10-26 14:37:41 +00:00
|
|
|
<field name="total_attendance" widget="float_time" sum="Attendances"/>
|
|
|
|
<field name="total_timesheet" widget="float_time" sum="Timesheets"/>
|
|
|
|
<field name="total_difference" widget="float_time" sum="Differences"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
2012-04-26 05:49:03 +00:00
|
|
|
</sheet>
|
2012-09-24 10:38:12 +00:00
|
|
|
<div class="oe_chatter">
|
|
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
2015-01-15 09:37:25 +00:00
|
|
|
<field name="message_ids" widget="mail_thread"/>
|
2012-09-24 10:38:12 +00:00
|
|
|
</div>
|
2008-06-29 08:26:07 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2009-09-24 10:46:21 +00:00
|
|
|
|
|
|
|
<record id="view_hr_timesheet_sheet_filter" model="ir.ui.view">
|
|
|
|
<field name="name">hr_timesheet_sheet.sheet.filter</field>
|
|
|
|
<field name="model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Timesheet">
|
2012-07-20 11:33:33 +00:00
|
|
|
<field name="date_from"/>
|
2012-10-26 07:57:15 +00:00
|
|
|
<filter name="new" string="In Draft" domain="[('state','in',('draft', 'new'))]" help="Unvalidated Timesheets"/>
|
|
|
|
<filter name="to_approve" string="To Approve" domain="[('state','=','confirm')]" help="Confirmed Timesheets"/>
|
2012-07-31 11:28:04 +00:00
|
|
|
<field name="employee_id"/>
|
|
|
|
<field name="department_id"/>
|
2014-05-22 09:44:35 +00:00
|
|
|
<group expand="0" string="Group By">
|
2010-10-06 16:39:01 +00:00
|
|
|
<filter string="Employees" icon="terp-personal" domain="[]" context="{'group_by':'employee_id'}"/>
|
2010-06-04 06:02:25 +00:00
|
|
|
<filter string="Department" icon="terp-personal+" domain="[]" context="{'group_by':'department_id'}"/>
|
2010-04-06 16:15:10 +00:00
|
|
|
</group>
|
2010-03-08 16:49:06 +00:00
|
|
|
</search>
|
2009-09-24 10:46:21 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="act_hr_timesheet_sheet_form" model="ir.actions.act_window">
|
2012-10-26 07:57:15 +00:00
|
|
|
<field name="name">Timesheets to Validate</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="view_type">form</field>
|
2008-07-01 19:20:40 +00:00
|
|
|
<field name="view_id" eval="False"/>
|
2012-10-26 07:57:15 +00:00
|
|
|
<field name="context">{'search_default_to_approve':1}</field>
|
2009-12-23 11:43:11 +00:00
|
|
|
<field name="search_view_id" ref="view_hr_timesheet_sheet_filter"/>
|
2012-08-04 14:35:56 +00:00
|
|
|
<field name="help" type="html">
|
2012-08-04 13:56:31 +00:00
|
|
|
<p class="oe_view_nocontent_create">
|
2012-10-26 07:57:15 +00:00
|
|
|
New timesheet to approve.
|
2012-08-04 13:21:36 +00:00
|
|
|
</p><p>
|
|
|
|
You must record timesheets every day and confirm at the end
|
2012-10-26 07:57:15 +00:00
|
|
|
of the week. Once the timesheet is confirmed, it should be
|
|
|
|
validated by a manager.
|
2012-08-04 13:21:36 +00:00
|
|
|
</p><p>
|
|
|
|
Timesheets can also be invoiced to customers, depending on the
|
2012-10-26 07:57:15 +00:00
|
|
|
configuration of each project's related contract.
|
2012-08-04 13:21:36 +00:00
|
|
|
</p>
|
|
|
|
</field>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2010-05-10 12:59:15 +00:00
|
|
|
|
2010-01-11 11:48:35 +00:00
|
|
|
<menuitem action="act_hr_timesheet_sheet_form" id="menu_act_hr_timesheet_sheet_form" parent="hr_attendance.menu_hr_time_tracking"
|
2012-09-20 09:07:06 +00:00
|
|
|
sequence="2" groups="base.group_hr_user"/>
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
<!--
|
2008-09-07 23:24:39 +00:00
|
|
|
Company inheritancy
|
|
|
|
-->
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="hr_timesheet_sheet_company" model="ir.ui.view">
|
|
|
|
<field name="name">res.company.sheet</field>
|
|
|
|
<field name="model">res.company</field>
|
|
|
|
<field name="inherit_id" ref="base.view_company_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-07-13 16:11:58 +00:00
|
|
|
<xpath expr="//group[@name='account_grp']" position="after">
|
|
|
|
<group name="timesheets_grp" string="Timesheets">
|
|
|
|
<field name="timesheet_range"/>
|
|
|
|
<field name="timesheet_max_difference"/>
|
|
|
|
</group>
|
2012-07-03 05:15:46 +00:00
|
|
|
</xpath>
|
2008-06-29 08:26:07 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
<!--
|
2008-09-07 23:24:39 +00:00
|
|
|
hr.analytic.timesheet inheritancy
|
|
|
|
-->
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="hr_timesheet_line_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.analytic.timesheet.form</field>
|
|
|
|
<field name="model">hr.analytic.timesheet</field>
|
|
|
|
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="date" position="after">
|
2010-03-09 16:59:26 +00:00
|
|
|
<field name="sheet_id" />
|
2008-06-29 08:26:07 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-11-14 12:20:42 +00:00
|
|
|
|
|
|
|
<record id="hr_timesheet_line_search" model="ir.ui.view">
|
|
|
|
<field name="name">hr.analytic.timesheet.search</field>
|
|
|
|
<field name="model">hr.analytic.timesheet</field>
|
|
|
|
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_search"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-29 08:49:33 +00:00
|
|
|
<field name="date" position="before">
|
2012-06-09 14:39:04 +00:00
|
|
|
<field name="sheet_id"/>
|
2011-11-14 12:20:42 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
<!--
|
2008-09-07 23:24:39 +00:00
|
|
|
hr.attendance inheritancy
|
|
|
|
-->
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2010-03-09 16:59:26 +00:00
|
|
|
<record model="ir.ui.view" id="view_hr_attendance_filter">
|
|
|
|
<field name="name">view_hr_attendance_filter</field>
|
|
|
|
<field name="model">hr.attendance</field>
|
|
|
|
<field name="inherit_id" ref="hr_attendance.view_hr_attendance_filter" />
|
|
|
|
<field name="arch" type="xml">
|
2012-06-13 12:41:57 +00:00
|
|
|
<field name="employee_id" position="after">
|
2012-05-21 12:50:14 +00:00
|
|
|
<field name="sheet_id"/>
|
2010-03-09 16:59:26 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_attendance_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.attendance.form</field>
|
|
|
|
<field name="model">hr.attendance</field>
|
2008-09-17 06:53:34 +00:00
|
|
|
<field name="inherit_id" ref="hr_attendance.view_attendance_form"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="action_desc" position="after">
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="sheet_id"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_attendance_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.attendance.tree</field>
|
|
|
|
<field name="model">hr.attendance</field>
|
2008-09-17 06:53:34 +00:00
|
|
|
<field name="inherit_id" ref="hr_attendance.view_attendance_tree"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="arch" type="xml">
|
2010-03-11 13:29:21 +00:00
|
|
|
<field name="action" position="after">
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="sheet_id"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-09 17:05:42 +00:00
|
|
|
<record id="view_attendance_tree_who" model="ir.ui.view">
|
|
|
|
<field name="name">hr.attendance.tree</field>
|
|
|
|
<field name="model">hr.attendance</field>
|
|
|
|
<field name="inherit_id" ref="hr_attendance.view_attendance_who"/>
|
|
|
|
<field name="arch" type="xml">
|
2010-03-11 13:29:21 +00:00
|
|
|
<field name="action" position="after">
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="sheet_id"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2010-10-04 11:13:44 +00:00
|
|
|
<act_window
|
2012-10-29 15:08:09 +00:00
|
|
|
context="{'search_default_sheet_id': [active_id]}"
|
|
|
|
id="act_hr_timesheet_sheet_sheet_by_account"
|
|
|
|
name="Timesheet by Account"
|
|
|
|
groups="base.group_hr_attendance"
|
|
|
|
res_model="hr_timesheet_sheet.sheet.account"
|
|
|
|
src_model="hr_timesheet_sheet.sheet"/>
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2010-10-04 11:13:44 +00:00
|
|
|
<act_window
|
2012-10-29 15:08:09 +00:00
|
|
|
context="{'search_default_sheet_id': [active_id]}"
|
|
|
|
id="act_hr_timesheet_sheet_sheet_by_day"
|
|
|
|
name="Timesheet by Day"
|
|
|
|
groups="base.group_hr_attendance"
|
|
|
|
res_model="hr_timesheet_sheet.sheet.day"
|
|
|
|
src_model="hr_timesheet_sheet.sheet"/>
|
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="hr_timesheet_sheet_tree_simplified" model="ir.ui.view">
|
2010-10-06 16:39:01 +00:00
|
|
|
<field name="name">hr.timesheet.sheet.tree</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="model">hr_timesheet_sheet.sheet</field>
|
2010-10-06 16:39:01 +00:00
|
|
|
<field eval="10" name="priority"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<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-10-06 16:39:01 +00:00
|
|
|
<field name="employee_id"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="date_from"/>
|
2010-10-06 16:39:01 +00:00
|
|
|
<field name="date_to"/>
|
2012-10-26 07:59:51 +00:00
|
|
|
<field name="department_id" invisible="1"/>
|
2012-09-21 07:08:09 +00:00
|
|
|
<field name="total_attendance" widget="float_time" groups="base.group_hr_attendance"/>
|
2011-08-31 11:51:14 +00:00
|
|
|
<field name="total_timesheet" widget="float_time"/>
|
2012-09-24 08:19:34 +00:00
|
|
|
<field name="total_difference" widget="float_time" groups="base.group_hr_attendance"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="state"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-11-14 12:20:42 +00:00
|
|
|
|
|
|
|
<record id="hr_timesheet_day_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.timesheet.day.tree</field>
|
|
|
|
<field name="model">hr_timesheet_sheet.sheet.day</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree colors="blue:total_difference<0.1;red:total_difference>=0.1" string="Period">
|
|
|
|
<field name="name"/>
|
2012-09-21 07:08:09 +00:00
|
|
|
<field name="total_attendance" widget="float_time" sum="Total Attendances" groups="base.group_hr_attendance"/>
|
2011-11-14 12:20:42 +00:00
|
|
|
<field name="total_timesheet" widget="float_time" sum="Total Timesheet"/>
|
2012-09-24 08:19:34 +00:00
|
|
|
<field name="total_difference" widget="float_time" sum="Total Difference" groups="base.group_hr_attendance"/>
|
2011-11-14 12:20:42 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-08-09 10:40:10 +00:00
|
|
|
<!-- Timesheet Button on Employee Form -->
|
2012-06-21 08:30:53 +00:00
|
|
|
|
2012-09-19 13:24:54 +00:00
|
|
|
<record id="act_hr_employee_2_hr_timesheet" model="ir.actions.act_window">
|
|
|
|
<field name="res_model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="view_type">form</field>
|
2012-09-27 17:36:41 +00:00
|
|
|
<field name="name">Timesheets</field>
|
2012-09-19 13:24:54 +00:00
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="context">{'search_default_employee_id': [active_id], 'default_employee_id': active_id}</field>
|
|
|
|
</record>
|
|
|
|
|
2012-06-21 08:30:53 +00:00
|
|
|
<record id="hr_timesheet_sheet_employee_extd_form" model="ir.ui.view">
|
2012-06-21 06:13:33 +00:00
|
|
|
<field name="name">hr.timesheet.sheet.employee.extd_form</field>
|
|
|
|
<field name="model">hr.employee</field>
|
2012-06-28 13:12:10 +00:00
|
|
|
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_employee_extd_form"/>
|
2012-06-21 06:13:33 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-07-05 09:29:21 +00:00
|
|
|
<xpath expr="//div[@name='button_box']" position="inside">
|
2014-03-26 12:00:56 +00:00
|
|
|
<button name="%(act_hr_employee_2_hr_timesheet)d"
|
|
|
|
type="action"
|
|
|
|
class="oe_stat_button"
|
|
|
|
icon="fa-clock-o"
|
|
|
|
groups="base.group_hr_manager">
|
|
|
|
<field name="timesheet_count" widget="statinfo" string="Timesheets"/>
|
|
|
|
</button>
|
2012-06-22 12:47:58 +00:00
|
|
|
</xpath>
|
2012-06-21 06:13:33 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-04-09 11:22:44 +00:00
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|