2008-07-01 15:58:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2008-09-10 17:56:00 +00:00
|
|
|
<openerp>
|
2010-01-11 13:27:51 +00:00
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
<data>
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="hr_timesheet_line_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.analytic.timesheet.tree</field>
|
|
|
|
<field name="model">hr.analytic.timesheet</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree editable="bottom" string="Timesheet Line">
|
|
|
|
<field name="user_id" on_change="on_change_user_id(user_id)" required="1"/>
|
2009-05-01 07:21:09 +00:00
|
|
|
<field name="date" on_change="on_change_date(date)"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field domain="[('type','=','normal'),('state', '<>', 'close')]" name="account_id"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" sum="Total time"/>
|
2009-05-08 07:22:58 +00:00
|
|
|
<field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" required="1" domain="[('type','=','service')]"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
|
|
|
|
<field name="amount" sum="Total cost"/>
|
|
|
|
<field name="general_account_id"/>
|
2009-10-01 14:14:25 +00:00
|
|
|
<field name="journal_id"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
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="arch" type="xml">
|
|
|
|
<form string="Timesheet Lines">
|
2009-05-01 07:21:09 +00:00
|
|
|
<field colspan="4" name="name" select="2"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="user_id" on_change="on_change_user_id(user_id)" required="1" select="1"/>
|
2009-05-01 07:21:09 +00:00
|
|
|
<field name="date" select="1" on_change="on_change_date(date)"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
<newline/>
|
2008-10-27 23:58:25 +00:00
|
|
|
<field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" required="1" domain="[('type','=','service')]"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<field domain="[('type','=','normal'),('state', '<>', 'close')]" name="account_id" select="1"/>
|
|
|
|
<field name="amount" select="2"/>
|
|
|
|
<field name="general_account_id" select="2"/>
|
|
|
|
<field name="journal_id"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
2009-10-30 12:22:28 +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="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Timesheet">
|
|
|
|
<group col='8' colspan='4'>
|
|
|
|
<filter icon="terp-hr" domain="[('date', '=', time.strftime('%%Y-%%m-%%d'))]" string="Today"/>
|
|
|
|
<filter icon="terp-hr" domain="[('user_id','=',uid)]" string="My Work" help="My Work"/>
|
2010-01-11 11:48:35 +00:00
|
|
|
<separator orientation="vertical"/>
|
2009-10-30 12:22:28 +00:00
|
|
|
<field name="user_id" select="1" widget="selection"/>
|
2010-01-11 11:48:35 +00:00
|
|
|
<field name="account_id" select="1" widget="selection"/>
|
2009-10-30 12:22:28 +00:00
|
|
|
<field name="date" select="1"/>
|
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
|
2010-01-11 11:48:35 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- <menuitem id="menu_act_hr_timesheet_line_today_form" parent="hr.menu_hr_root" name="Working Hours" />-->
|
2009-10-30 12:22:28 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="act_hr_timesheet_line_me_all_form" model="ir.actions.act_window">
|
2008-07-01 19:20:40 +00:00
|
|
|
<field name="name">My Working Hours</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">hr.analytic.timesheet</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="domain">[('user_id','=',uid)]</field>
|
2009-12-01 11:48:26 +00:00
|
|
|
<field name="filter" eval="True"/>
|
2009-10-30 12:22:28 +00:00
|
|
|
<field name="search_view_id" ref="hr_timesheet_line_search"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2008-07-01 19:20:40 +00:00
|
|
|
|
|
|
|
<record id="act_hr_timesheet_line_evry1_all_form" model="ir.actions.act_window">
|
2008-08-19 21:49:26 +00:00
|
|
|
<field name="name">Working Hours</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">hr.analytic.timesheet</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2010-01-11 11:48:35 +00:00
|
|
|
<field name="search_view_id" ref="hr_timesheet_line_search"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2010-01-11 11:48:35 +00:00
|
|
|
<!-- <menuitem
|
2008-10-31 22:43:31 +00:00
|
|
|
action="act_hr_timesheet_line_evry1_all_form"
|
|
|
|
id="menu_act_hr_timesheet_line_evry1_all_form"
|
|
|
|
parent="hr_timesheet.menu_act_hr_timesheet_line_today_form"
|
2010-01-11 11:48:35 +00:00
|
|
|
groups="hr.group_hr_manager"/>-->
|
2008-10-31 22:43:31 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="hr_timesheet_employee_extd_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.timesheet.employee.extd_form</field>
|
|
|
|
<field name="model">hr.employee</field>
|
|
|
|
<field name="inherit_id" ref="hr.view_employee_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2008-08-27 20:53:10 +00:00
|
|
|
<notebook position="inside">
|
2008-10-27 23:58:25 +00:00
|
|
|
<page string="Timesheets">
|
|
|
|
<field name="product_id" domain="[('type','=','service')]"/>
|
|
|
|
<field name="journal_id"/>
|
|
|
|
</page>
|
2008-08-27 20:53:10 +00:00
|
|
|
</notebook>
|
2008-06-29 08:26:07 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|