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-08-19 09:38:02 +00:00
|
|
|
|
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="arch" type="xml">
|
2010-04-06 16:15:10 +00:00
|
|
|
<tree editable="bottom" string="Timesheet Lines">
|
2009-05-01 07:21:09 +00:00
|
|
|
<field name="date" on_change="on_change_date(date)"/>
|
2010-10-04 22:56:29 +00:00
|
|
|
<field name="user_id" on_change="on_change_user_id(user_id)" required="1"/>
|
2010-10-04 23:23:08 +00:00
|
|
|
<field name="journal_id" invisible="1"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="name"/>
|
2012-05-29 07:00:00 +00:00
|
|
|
<field domain="[('type','=','normal'),('use_timesheets','=',1)]" name="account_id" context="{'default_use_timesheets': 1}"/>
|
2010-10-04 23:23:08 +00:00
|
|
|
<field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" required="1" domain="[('type','=','service')]" invisible="1"/>
|
2011-02-18 12:14:35 +00:00
|
|
|
<field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" sum="Total time" widget="float_time"/>
|
2010-10-04 23:23:08 +00:00
|
|
|
<field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" invisible="1"/>
|
|
|
|
<field name="amount" sum="Total cost" invisible="1"/>
|
|
|
|
<field name="general_account_id" invisible="1"/>
|
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="arch" type="xml">
|
2012-06-29 08:49:33 +00:00
|
|
|
<form string="Timesheet Lines" version="7.0">
|
|
|
|
<sheet>
|
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="user_id" on_change="on_change_user_id(user_id)" required="1"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="date" on_change="on_change_date(date)"/>
|
|
|
|
</group>
|
2010-09-17 13:38:24 +00:00
|
|
|
</group>
|
2012-06-07 17:30:07 +00:00
|
|
|
<notebook>
|
2010-09-17 13:38:24 +00:00
|
|
|
<page string="Information">
|
2012-06-29 08:49:33 +00:00
|
|
|
<group>
|
|
|
|
<group string="Product">
|
|
|
|
<field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" required="1" domain="[('type','=','service')]"/>
|
2012-07-05 09:29:21 +00:00
|
|
|
<label string="Quantity" for="unit_amount"/>
|
2012-06-29 08:49:33 +00:00
|
|
|
<div>
|
|
|
|
<field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" class="oe_inline"/>
|
|
|
|
<field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" class="oe_inline"/>
|
|
|
|
</div>
|
2010-09-17 13:38:24 +00:00
|
|
|
</group>
|
2012-06-29 08:49:33 +00:00
|
|
|
<group string="Accounting">
|
|
|
|
<field domain="[('type','=','normal'),('state', '<>', 'close'),('parent_id','!=',False)]" name="account_id" select="1"/>
|
|
|
|
<field name="amount"/>
|
|
|
|
<field name="general_account_id"/>
|
|
|
|
<field name="journal_id"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
2010-09-17 13:38:24 +00:00
|
|
|
</page>
|
|
|
|
</notebook>
|
2012-06-29 08:49:33 +00:00
|
|
|
</sheet>
|
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="arch" type="xml">
|
|
|
|
<search string="Timesheet">
|
2012-07-20 11:10:39 +00:00
|
|
|
<field name="date"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="account_id"/>
|
2010-09-06 10:54:46 +00:00
|
|
|
<group expand="0" string="Group By...">
|
|
|
|
<filter string="Users" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
|
2011-03-11 12:23:45 +00:00
|
|
|
<filter string="Analytic account" icon="terp-folder-green" domain="[]" context="{'group_by':'account_id'}"/>
|
2010-09-22 05:39:37 +00:00
|
|
|
<filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
|
2010-10-04 23:23:08 +00:00
|
|
|
<filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
|
|
|
|
</group>
|
2009-10-30 12:22:28 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
2010-01-11 11:48:35 +00:00
|
|
|
</record>
|
2012-05-28 13:31:58 +00:00
|
|
|
|
|
|
|
<record id="account_analytic_account_timesheet_form" model="ir.ui.view">
|
|
|
|
<field name="name">account.analytic.account.invoice.form</field>
|
|
|
|
<field name="model">account.analytic.account</field>
|
|
|
|
<field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-15 08:12:54 +00:00
|
|
|
<xpath expr='//separator[@name="project_sep"]' position='replace'>
|
|
|
|
<separator name="project_sep" string="Project Management" colspan="4"/> <!-- removal of invisible attribute -->
|
|
|
|
</xpath>
|
|
|
|
<xpath expr='//separator[@name="project_sep"]' position='after'>
|
|
|
|
<field name="use_timesheets"/>
|
2012-05-28 13:31:58 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
2008-07-01 19:20:40 +00:00
|
|
|
<record id="act_hr_timesheet_line_evry1_all_form" model="ir.actions.act_window">
|
2011-02-18 11:53:30 +00:00
|
|
|
<field name="name">Timesheet Lines</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>
|
2012-01-03 12:19:38 +00:00
|
|
|
<field name="context">{"search_default_today":1}</field>
|
2010-01-11 11:48:35 +00:00
|
|
|
<field name="search_view_id" ref="hr_timesheet_line_search"/>
|
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-08-04 13:21:36 +00:00
|
|
|
Click to your timesheets.
|
|
|
|
</p><p>
|
|
|
|
Through this menu you can register and follow your workings
|
|
|
|
hours by project every day.
|
|
|
|
</p>
|
|
|
|
</field>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2010-06-30 12:45:20 +00:00
|
|
|
|
2010-12-22 08:44:44 +00:00
|
|
|
<menuitem id="menu_hr_working_hours" parent="hr_attendance.menu_hr_time_tracking" action="act_hr_timesheet_line_evry1_all_form"/>
|
2010-06-30 12:45:20 +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">
|
2012-06-21 06:13:33 +00:00
|
|
|
<page string="Personal Information" position="after">
|
2010-12-30 17:08:00 +00:00
|
|
|
<page string="Timesheets" groups="base.group_hr_user">
|
2012-07-05 09:29:21 +00:00
|
|
|
<group>
|
2012-06-28 13:12:10 +00:00
|
|
|
<group col="2">
|
|
|
|
<field name="product_id" domain="[('type','=','service')]"/>
|
|
|
|
<field name="journal_id"/>
|
|
|
|
</group>
|
2012-06-22 12:47:58 +00:00
|
|
|
</group>
|
2008-10-27 23:58:25 +00:00
|
|
|
</page>
|
2010-08-19 09:38:02 +00:00
|
|
|
</page>
|
2008-06-29 08:26:07 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
2012-05-16 13:25:36 +00:00
|
|
|
<menuitem id="menu_hr_timesheet_reports" parent="hr.menu_hr_reporting" sequence="5" name="Timesheet"/>
|
2012-03-05 13:08:10 +00:00
|
|
|
|
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>
|