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 >
2010-04-15 11:45:28 +00:00
<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>
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= "type" > form</field>
<field name= "arch" type= "xml" >
2008-10-27 13:31:02 +00:00
<form string= "Timesheet by Accounts" >
2008-07-01 15:58:58 +00:00
<field name= "sheet_id" select= "1" />
2010-10-04 11:13:44 +00:00
<field name= "name" select= "1" groups= "analytic.group_analytic_accounting" />
2008-07-01 15:58:58 +00:00
<field name= "total" sum= "Total" />
2010-04-16 09:16:25 +00:00
<field name= "invoice_rate" />
2008-06-29 08:26:07 +00:00
</form>
</field>
</record>
2009-12-23 11:43:11 +00:00
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= "type" > tree</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
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= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Timesheet" >
2010-06-25 08:46:21 +00:00
<group colspan= "4" col= "6" >
<field name= "name" />
<field name= "company_id" select= "1" groups= "base.group_multi_company" />
<field name= "department_id" groups= "base.group_extended" />
<newline />
2010-10-06 16:39:01 +00:00
<field name= "employee_id" />
2010-06-25 08:46:21 +00:00
<field name= "date_from" />
<field name= "date_to" />
</group>
2008-07-01 15:58:58 +00:00
<notebook colspan= "4" >
<page string= "Daily View" >
<group col= "6" colspan= "4" >
2010-06-16 11:41:41 +00:00
<button name= "button_dummy" string= "Go to:" type= "object" icon= "terp-gtk-jump-to-ltr" />
2008-07-01 15:58:58 +00:00
<field name= "date_current" nolabel= "1" />
<label string= "" />
2010-06-16 11:41:41 +00:00
<button icon= "terp-gtk-go-back-ltr" name= "date_previous" string= "" type= "object" />
<button name= "date_today" string= "Today" type= "object" icon= "terp-go-today" />
<button icon= "terp-gtk-go-back-rtl" name= "date_next" string= "" type= "object" />
2008-06-29 08:26:07 +00:00
</group>
2009-12-23 11:43:11 +00:00
2010-10-08 13:22:47 +00:00
<field colspan= "3" context= "name=date_current,user_id=user_id" height= "100" name= "attendances_ids" nolabel= "1" >
2010-05-10 12:59:15 +00:00
<tree string= "Attendances" editable= "bottom" >
2008-07-01 15:58:58 +00:00
<field name= "name" />
<field name= "action" />
<field invisible= "1" name= "employee_id" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
2010-10-08 13:22:47 +00:00
<group col= "1" colspan= "1" >
2010-06-16 11:41:41 +00:00
<button name= "sign_in" string= "Sign In" type= "object" icon= "terp-gtk-jump-to-ltr" />
<button name= "sign_out" string= "Sign Out" type= "object" icon= "terp-gtk-jump-to-rtl" />
2008-06-29 08:26:07 +00:00
</group>
2010-10-08 13:22:47 +00:00
<field name= "state_attendance" />
<field name= "total_attendance_day" widget= "float_time" />
2008-07-01 15:58:58 +00:00
<field colspan= "4" context= "date=date_current,user_id=user_id" domain= "[('name','=',date_current)]" name= "timesheet_ids" nolabel= "1" >
<tree editable= "top" string= "Timesheet" >
<field invisible= "1" name= "date" />
<field domain= "[('type','=','normal'), ('state', '<>', 'close')]" name= "account_id" on_change= "on_change_account_id(account_id)" />
<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" />
2008-07-01 15:58:58 +00:00
<field name= "to_invoice" />
<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>
2009-04-06 14:04:58 +00:00
<form string= "Timesheet" >
<field name= "date" />
<field domain= "[('type','=','normal'), ('state', '<>', 'close')]" name= "account_id" on_change= "on_change_account_id(account_id)" />
<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>
2008-07-01 15:58:58 +00:00
<field name= "total_difference_day" widget= "float_time" />
<field name= "total_timesheet_day" widget= "float_time" />
2008-06-29 08:26:07 +00:00
</page>
2008-07-01 15:58:58 +00:00
<page string= "By Day" >
<field colspan= "4" name= "period_ids" nolabel= "1" >
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" />
2010-10-08 13:22:47 +00:00
<field name= "total_attendance" widget= "float_time" />
2008-07-01 15:58:58 +00:00
<field name= "total_timesheet" widget= "float_time" />
2010-10-08 13:22:47 +00:00
<field name= "total_difference" widget= "float_time" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
2010-03-18 17:39:33 +00:00
<group colspan= "4" col= "6" >
<field name= "total_attendance" widget= "float_time" />
<field name= "total_timesheet" widget= "float_time" />
<field name= "total_difference" widget= "float_time" />
</group>
2008-06-29 08:26:07 +00:00
</page>
</notebook>
2008-07-01 15:58:58 +00:00
<field name= "state" />
<group col= "4" colspan= "2" >
2010-09-22 05:39:37 +00:00
<button name= "button_confirm" states= "draft" string= "Confirm" type= "object" icon= "terp-check" />
2010-06-16 11:41:41 +00:00
<button name= "action_set_to_draft" states= "done" string= "Set to Draft" type= "object" icon= "terp-stock_effects-object-colorize" />
2010-07-30 07:52:45 +00:00
<button name= "cancel" states= "confirm" string= "Refuse" type= "workflow" icon= "gtk-cancel" />
2010-09-22 05:39:37 +00:00
<button name= "done" states= "confirm" string= "Approve" type= "workflow" icon= "terp-camera_test" />
2008-06-29 08:26:07 +00:00
</group>
</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= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Timesheet" >
2010-03-08 16:56:48 +00:00
<group col= "10" colspan= "4" >
2010-06-04 06:02:25 +00:00
<filter icon= "terp-document-new" string= "In Draft" domain= "[('state','in',('draft', 'new'))]" help= "Unvalidated Timesheets" />
2010-09-06 10:59:13 +00:00
<filter icon= "terp-camera_test" string= "To Approve" domain= "[('state','=','confirm')]" help= "Confirmed Timesheets" />
2010-04-06 16:15:10 +00:00
<separator orientation= "vertical" />
2010-10-06 16:39:01 +00:00
<field name= "employee_id" select= "1" />
2010-04-06 16:15:10 +00:00
<field name= "date_from" />
2010-03-08 16:49:06 +00:00
<field name= "department_id" widget= "selection" >
2010-06-04 06:02:25 +00:00
<filter icon= "terp-personal+"
2010-03-08 16:49:06 +00:00
domain="[('department_id','=',context.get('department_id',False))]"
help="My Departments Timesheet"/>
</field>
</group>
2010-03-09 10:11:24 +00:00
<newline />
2010-06-04 06:02:25 +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" >
2008-07-01 19:20:40 +00:00
<field name= "name" > Timesheets</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" />
2010-10-06 16:39:01 +00:00
<field name= "context" > {'search_default_my_timesheet':1, }</field>
2009-12-23 11:43:11 +00:00
<field name= "search_view_id" ref= "view_hr_timesheet_sheet_filter" />
2010-07-21 13:23:30 +00:00
<field name= "help" > Employees can encode their time spent on the different projects. A project is an analytic account and the time spent on a project generate costs on the analytic account.</field>
2008-06-29 08:26:07 +00:00
</record>
2010-05-10 12:59:15 +00:00
2010-02-03 11:44:21 +00:00
<!-- Time Tracking menu in project Management -->
2010-06-17 12:16:52 +00:00
<menuitem icon= "terp-project" id= "base.menu_main_pm" name= "Project" sequence= "10" />
2010-08-19 11:51:57 +00:00
<menuitem
2010-02-03 11:44:21 +00:00
id="base.menu_project_management_time_tracking"
name="Time Tracking"
2010-06-16 11:43:59 +00:00
parent="base.menu_main_pm" sequence="5"/>
2010-10-04 19:49:13 +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"
2010-09-15 13:50:27 +00:00
sequence="2"/>
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= "type" > form</field>
<field name= "inherit_id" ref= "base.view_company_form" />
<field name= "arch" type= "xml" >
2008-09-07 23:24:39 +00:00
<page string= "Configuration" position= "inside" >
<separator string= "Timesheets" colspan= "4" />
2008-07-01 15:58:58 +00:00
<field name= "timesheet_range" />
<field name= "timesheet_max_difference" />
2008-06-29 08:26:07 +00:00
<newline />
2008-09-07 23:24:39 +00:00
</page>
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= "type" > form</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>
<!--
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= "type" > search</field>
<field name= "inherit_id" ref= "hr_attendance.view_hr_attendance_filter" />
<field name= "arch" type= "xml" >
2010-03-11 13:29:21 +00:00
<field name= "action" position= "after" >
2010-03-09 16:59:26 +00:00
<field name= "sheet_id" select= "1" />
</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>
<field name= "type" > form</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>
<field name= "type" > tree</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= "type" > tree</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
2010-09-28 13:17:10 +00:00
context="{'search_default_sheet_id': [active_id]}"
2010-10-04 11:13:44 +00:00
id="act_hr_timesheet_sheet_sheet_by_day"
name="Timesheet by Account"
res_model="hr_timesheet_sheet.sheet.account"
2010-09-28 13:17:10 +00:00
src_model="hr_timesheet_sheet.sheet"/>
2009-12-23 11:43:11 +00:00
2010-10-04 11:13:44 +00:00
<act_window
2010-09-28 13:17:10 +00:00
context="{'search_default_sheet_id': [active_id]}"
2010-10-04 11:13:44 +00:00
id="act_hr_timesheet_sheet_sheet_2_hr_analytic_timesheet"
name="Timesheet Lines"
res_model="hr.analytic.timesheet"
2010-09-28 13:17:10 +00:00
src_model="hr_timesheet_sheet.sheet"/>
2009-12-23 11:43:11 +00:00
2010-10-04 11:13:44 +00:00
<act_window
2010-09-28 13:17:10 +00:00
context="{'search_default_sheet_id': [active_id]}"
2010-10-04 11:13:44 +00:00
id="act_hr_timesheet_sheet_sheet_2_hr_attendance"
name="Attendances"
res_model="hr.attendance"
2010-09-28 13:17:10 +00:00
src_model="hr_timesheet_sheet.sheet"/>
2009-12-23 11:43:11 +00:00
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>
<field name= "type" > tree</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" >
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-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" />
<field name= "department_id" />
2010-10-08 13:22:47 +00:00
<field name= "total_attendance" />
2008-07-01 15:58:58 +00:00
<field name= "total_timesheet" />
2010-10-08 13:22:47 +00:00
<field name= "total_difference" />
2008-07-01 15:58:58 +00:00
<field name= "state" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
</record>
2010-09-23 07:19:13 +00:00
<record id= "view_hr_timesheet_sheet_graph" model= "ir.ui.view" >
<field name= "name" > hr.timesheet.sheet.sheet.graph</field>
<field name= "model" > hr_timesheet_sheet.sheet</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph orientation= "horizontal" string= "Available Attendance" type= "bar" >
<field name= "name" />
<field name= "total_attendance" operator= "+" />
</graph>
</field>
</record>
2010-08-09 10:40:10 +00:00
<!-- Timesheet Button on Employee Form -->
<act_window domain= "[('user_id', '=', user_id)]" id= "act_hr_employee_2_hr_timesheet" name= "Timesheets" res_model= "hr_timesheet_sheet.sheet" src_model= "hr.employee" />
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>