2007-03-05 18:22:32 +00:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
<terp>
|
|
|
|
<data>
|
|
|
|
<record model="ir.ui.view" id="hr_timesheet_sheet_tree">
|
|
|
|
<field name="name">hr.timesheet.sheet.tree</field>
|
|
|
|
<field name="model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2007-04-24 09:57:49 +00:00
|
|
|
<tree string="Timesheets">
|
2007-03-05 18:22:32 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="date_from" />
|
|
|
|
<field name="date_to" />
|
|
|
|
<field name="name" />
|
|
|
|
<field name="total_attendance"/>
|
2007-03-06 06:23:48 +00:00
|
|
|
<field name="total_timesheet"/>
|
2007-03-05 18:22:32 +00:00
|
|
|
<field name="total_difference"/>
|
|
|
|
<field name="state"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
2007-12-18 07:42:53 +00:00
|
|
|
<record model="ir.ui.view" id="hr_timesheet_account_form">
|
|
|
|
<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">
|
|
|
|
<form string="Timesheet by accounts">
|
|
|
|
<field name="sheet_id" select="1"/>
|
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="total" sum="Total"/>
|
|
|
|
<field name="invoice_rate" select="2"/>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2007-03-06 09:55:17 +00:00
|
|
|
<record model="ir.ui.view" id="hr_timesheet_account_tree">
|
|
|
|
<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">
|
2007-12-18 07:42:53 +00:00
|
|
|
<tree string="Timesheet by Accounts">
|
2007-03-06 09:55:17 +00:00
|
|
|
<field name="sheet_id"/>
|
|
|
|
<field name="name"/>
|
2007-12-18 07:42:53 +00:00
|
|
|
<field name="total" sum="Total"/>
|
2007-04-17 10:16:29 +00:00
|
|
|
<field name="invoice_rate"/>
|
2007-03-06 09:55:17 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
2007-12-18 07:42:53 +00:00
|
|
|
<record model="ir.ui.view" id="hr_timesheet_day_form">
|
|
|
|
<field name="name">hr.timesheet.day.form</field>
|
|
|
|
<field name="model">hr_timesheet_sheet.sheet.day</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Timesheet by Days">
|
|
|
|
<field name="sheet_id" select="1"/>
|
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="total_timesheet"/>
|
|
|
|
<field name="total_attendance"/>
|
|
|
|
<field name="total_difference"/>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="hr_timesheet_day_tree">
|
|
|
|
<field name="name">hr.timesheet.day.tree</field>
|
|
|
|
<field name="model">hr_timesheet_sheet.sheet.day</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Timesheet by Days" colors="red:total_difference<=0.1;blue:total_difference>=0.1">
|
|
|
|
<field name="sheet_id"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="total_timesheet" sum="Total Timesheet"/>
|
|
|
|
<field name="total_attendance" sum="Total Attendance"/>
|
|
|
|
<field name="total_difference" sum="Total Difference"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2007-03-06 09:55:17 +00:00
|
|
|
|
2007-03-05 18:22:32 +00:00
|
|
|
<record model="ir.ui.view" id="hr_timesheet_sheet_form">
|
|
|
|
<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">
|
2007-04-24 09:57:49 +00:00
|
|
|
<form string="Timesheet">
|
2007-03-05 18:22:32 +00:00
|
|
|
<field name="name" />
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="date_from" />
|
|
|
|
<field name="date_to" />
|
|
|
|
|
|
|
|
<notebook colspan="4">
|
2007-12-18 07:42:53 +00:00
|
|
|
<page string="Daily View">
|
2007-04-25 12:37:56 +00:00
|
|
|
<group col="6" colspan="4">
|
|
|
|
<button name="button_dummy" string="Go to:" type="object"/>
|
2007-03-05 18:22:32 +00:00
|
|
|
<field name="date_current" nolabel="1"/>
|
2007-04-25 12:37:56 +00:00
|
|
|
<label string=""/>
|
2007-04-12 14:41:29 +00:00
|
|
|
<button icon="gtk-media-previous" string="" name="date_previous" type="object"/>
|
2007-04-25 12:37:56 +00:00
|
|
|
<button string="Today" name="date_today" type="object"/>
|
2007-04-12 14:41:29 +00:00
|
|
|
<button icon="gtk-media-next" string="" name="date_next" type="object"/>
|
2007-03-05 18:22:32 +00:00
|
|
|
</group>
|
2007-04-25 12:37:56 +00:00
|
|
|
|
|
|
|
<field name="attendances_ids" colspan="3" nolabel="1" context="name=date_current,user_id=user_id" height="100">
|
2007-03-06 09:55:17 +00:00
|
|
|
<tree string="Attendances">
|
2007-03-05 18:22:32 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="action"/>
|
2007-09-21 06:31:47 +00:00
|
|
|
<field name="employee_id" invisible="1"/>
|
2007-03-05 18:22:32 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
2007-04-25 12:37:56 +00:00
|
|
|
<group col="1" colspan="1">
|
2007-06-06 11:11:11 +00:00
|
|
|
<button string="Sign In" name="sign_in" type="object"/>
|
|
|
|
<button string="Sign Out" name="sign_out" type="object"/>
|
2007-04-25 12:37:56 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
|
2007-03-06 09:55:17 +00:00
|
|
|
<field name="state_attendance"/>
|
2007-03-07 06:26:01 +00:00
|
|
|
<field name="total_attendance_day" widget="float_time"/>
|
2007-04-11 06:37:02 +00:00
|
|
|
<field name="timesheet_ids" colspan="4" nolabel="1" domain="[('name','=',date_current)]" context="date=date_current,user_id=user_id">
|
2007-03-05 18:22:32 +00:00
|
|
|
<tree string="Timesheet" editable="top">
|
2007-10-10 05:44:30 +00:00
|
|
|
<field name="date" invisible="1"/>
|
2007-10-17 13:48:26 +00:00
|
|
|
<field name="account_id"
|
|
|
|
on_change="on_change_account_id(account_id)"
|
|
|
|
domain="[('type','=','normal'), ('state', '<>', 'close')]"/>
|
2007-03-05 18:22:32 +00:00
|
|
|
<field name="name" />
|
2007-10-17 13:48:26 +00:00
|
|
|
<field name="unit_amount"
|
|
|
|
on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"
|
|
|
|
widget="float_time"/>
|
2007-04-11 07:00:55 +00:00
|
|
|
<field name="to_invoice"/>
|
2007-09-21 06:31:47 +00:00
|
|
|
<field name="journal_id" invisible="1"/>
|
|
|
|
<field name="product_id" invisible="1"/>
|
2007-10-17 13:48:26 +00:00
|
|
|
<field name="product_uom_id" invisible="1"
|
|
|
|
on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" />
|
|
|
|
<field name="amount"/>
|
|
|
|
<field name="general_account_id"/>
|
|
|
|
<field name="journal_id"/>
|
2007-09-21 06:31:47 +00:00
|
|
|
<field name="user_id" required="1" invisible="1"/>
|
2007-03-05 18:22:32 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
2007-03-07 06:26:01 +00:00
|
|
|
<field name="total_difference_day" widget="float_time"/>
|
|
|
|
<field name="total_timesheet_day" widget="float_time"/>
|
2007-06-06 11:11:11 +00:00
|
|
|
</page>
|
2007-12-18 07:42:53 +00:00
|
|
|
<page string="By Day">
|
2007-03-05 18:22:32 +00:00
|
|
|
<field name="period_ids" colspan="4" nolabel="1">
|
|
|
|
<tree string="Period" colors="red:total_difference<=0.1;blue:total_difference>=0.1">
|
|
|
|
<field name="name"/>
|
2007-03-07 06:26:01 +00:00
|
|
|
<field name="total_attendance" widget="float_time"/>
|
|
|
|
<field name="total_timesheet" widget="float_time"/>
|
|
|
|
<field name="total_difference" widget="float_time"/>
|
2007-03-05 18:22:32 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
2007-03-07 06:26:01 +00:00
|
|
|
<field name="total_attendance" widget="float_time"/>
|
|
|
|
<field name="total_timesheet" widget="float_time"/>
|
|
|
|
<field name="total_difference" widget="float_time"/>
|
2007-06-06 11:11:11 +00:00
|
|
|
</page>
|
2007-12-27 16:53:18 +00:00
|
|
|
<!--
|
2007-06-06 11:11:11 +00:00
|
|
|
<page string="By account">
|
2007-03-06 09:55:17 +00:00
|
|
|
<field name="account_ids" colspan="4" nolabel="1">
|
|
|
|
<tree string="Analytic accounts">
|
|
|
|
<field name="name"/>
|
2007-03-07 06:26:01 +00:00
|
|
|
<field name="total" widget="float_time"/>
|
2007-04-17 10:16:29 +00:00
|
|
|
<field name="invoice_rate"/>
|
2007-03-06 09:55:17 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
2007-03-05 18:22:32 +00:00
|
|
|
</page>
|
2007-12-18 07:42:53 +00:00
|
|
|
-->
|
2007-03-05 18:22:32 +00:00
|
|
|
</notebook>
|
2007-04-25 12:37:56 +00:00
|
|
|
<field name="state"/>
|
|
|
|
<group col="4" colspan="2">
|
|
|
|
<button string="Confirm" name="button_confirm" states="draft" type="object"/>
|
2007-06-18 10:20:48 +00:00
|
|
|
<button string="Set to Draft" name="action_set_to_draft" states="done" type="object"/>
|
2007-04-25 12:37:56 +00:00
|
|
|
<button string="Refuse" name="cancel" states="confirm"/>
|
|
|
|
<button string="Accept" name="done" states="confirm"/>
|
|
|
|
</group>
|
2007-03-05 18:22:32 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="act_hr_timesheet_sheet_form">
|
2008-06-18 12:37:28 +00:00
|
|
|
<field name="name">All Timesheets</field>
|
2007-03-05 18:22:32 +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>
|
|
|
|
<field name="view_id" ref="hr_timesheet_sheet_form" />
|
|
|
|
</record>
|
2007-08-09 07:47:53 +00:00
|
|
|
<menuitem name="Human Resources/Timesheets/All Timesheets"
|
2007-03-05 18:22:32 +00:00
|
|
|
id="menu_act_hr_timesheet_sheet_form"
|
|
|
|
action="act_hr_timesheet_sheet_form" />
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="act_hr_timesheet_sheet_form_my">
|
2007-05-15 07:42:18 +00:00
|
|
|
<field name="name">My timesheets</field>
|
2007-03-05 18:22:32 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="domain">[('user_id','=',uid)]</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
2007-08-09 07:47:53 +00:00
|
|
|
<menuitem name="Human Resources/Timesheets/My Timesheets"
|
2007-03-05 18:22:32 +00:00
|
|
|
id="menu_act_hr_timesheet_sheet_form_my"
|
|
|
|
action="act_hr_timesheet_sheet_form_my" />
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="act_hr_timesheet_sheet_form_my_confirm">
|
2007-05-15 07:42:18 +00:00
|
|
|
<field name="name">My timesheets to confirm</field>
|
2007-03-05 18:22:32 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="domain">[('user_id','=',uid),('state','=','draft'),('date_to','<=',time.strftime('%Y-%m-%d'))]</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
2007-08-09 07:47:53 +00:00
|
|
|
<menuitem name="Human Resources/Timesheets/My Timesheets/My Timesheets to Confirm"
|
2007-03-05 18:22:32 +00:00
|
|
|
id="menu_act_hr_timesheet_sheet_form_my_confirm"
|
|
|
|
action="act_hr_timesheet_sheet_form_my_confirm" />
|
|
|
|
|
2007-06-19 17:01:25 +00:00
|
|
|
<wizard string="My department's timesheet"
|
|
|
|
model="hr.employee"
|
|
|
|
name="hr_timesheet_sheet.department.open"
|
|
|
|
id="act_hr_timesheet_sheet_form_department_current"/>
|
2007-08-09 07:47:53 +00:00
|
|
|
<menuitem name="Human Resources/Timesheets/My Department's Timesheets"
|
2007-06-19 17:01:25 +00:00
|
|
|
id="menu_act_hr_timesheet_sheet_form_department_current"
|
|
|
|
action="act_hr_timesheet_sheet_form_department_current"
|
|
|
|
icon="STOCK_JUSTIFY_FILL"
|
|
|
|
type="wizard"/>
|
|
|
|
|
|
|
|
<wizard string="My department's timesheet"
|
|
|
|
model="hr.employee"
|
|
|
|
name="hr_timesheet_sheet.department.validate.open"
|
|
|
|
id="act_hr_timesheet_sheet_form_department_validate"/>
|
2007-08-09 07:47:53 +00:00
|
|
|
<menuitem name="Human Resources/Timesheets/My Department's Timesheets/Timesheets to Validate"
|
2007-06-19 17:01:25 +00:00
|
|
|
id="menu_act_hr_timesheet_sheet_form_department_validate"
|
|
|
|
action="act_hr_timesheet_sheet_form_department_validate"
|
|
|
|
icon="STOCK_JUSTIFY_FILL"
|
|
|
|
type="wizard"/>
|
|
|
|
|
|
|
|
|
|
|
|
<wizard string="My department's timesheet"
|
|
|
|
model="hr.employee"
|
|
|
|
name="hr_timesheet_sheet.department.confirm.open"
|
|
|
|
id="act_hr_timesheet_sheet_form_department_confirm"/>
|
2007-08-09 07:47:53 +00:00
|
|
|
<menuitem name="Human Resources/Timesheets/My Department's Timesheets/Timesheets to Confirm"
|
2007-06-19 17:01:25 +00:00
|
|
|
id="menu_act_hr_timesheet_sheet_form_department_confirm"
|
|
|
|
action="act_hr_timesheet_sheet_form_department_confirm"
|
|
|
|
icon="STOCK_JUSTIFY_FILL"
|
|
|
|
type="wizard"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-12-18 07:42:53 +00:00
|
|
|
<wizard string="My Current Timesheet"
|
2007-03-05 18:22:32 +00:00
|
|
|
model="hr.employee"
|
|
|
|
name="hr_timesheet_sheet.current.open"
|
|
|
|
id="act_hr_timesheet_sheet_form_my_current"/>
|
2007-08-09 07:47:53 +00:00
|
|
|
<menuitem name="Human Resources/Timesheets/My Timesheets/My Current Timesheet"
|
2007-03-05 18:22:32 +00:00
|
|
|
id="menu_act_hr_timesheet_sheet_form_my_current"
|
|
|
|
action="act_hr_timesheet_sheet_form_my_current"
|
2007-06-19 17:01:25 +00:00
|
|
|
icon="STOCK_NEW"
|
2007-03-05 18:22:32 +00:00
|
|
|
type="wizard"/>
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="act_hr_timesheet_sheet_form_all_confirm">
|
2007-12-18 07:42:53 +00:00
|
|
|
<field name="name">Timesheets To Confirm</field>
|
2007-03-05 18:22:32 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="domain">[('state','=','draft'),('date_to','<=',time.strftime('%Y-%m-%d'))]</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
2007-08-09 07:47:53 +00:00
|
|
|
<menuitem name="Human Resources/Timesheets/All Timesheets/Timesheets to Confirm"
|
2007-03-05 18:22:32 +00:00
|
|
|
id="menu_act_hr_timesheet_sheet_form_all_confirm"
|
|
|
|
action="act_hr_timesheet_sheet_form_all_confirm" />
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="act_hr_timesheet_sheet_form_all_valid">
|
2007-12-18 07:42:53 +00:00
|
|
|
<field name="name">Timesheets To Validate</field>
|
2007-03-05 18:22:32 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="domain">[('state','=','confirm')]</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
2007-08-09 07:47:53 +00:00
|
|
|
<menuitem name="Human Resources/Timesheets/All Timesheets/Timesheets to Validate"
|
2007-03-05 18:22:32 +00:00
|
|
|
id="menu_act_hr_timesheet_sheet_form_all_valid"
|
|
|
|
action="act_hr_timesheet_sheet_form_all_valid" />
|
|
|
|
|
2007-03-07 06:26:01 +00:00
|
|
|
<!--
|
|
|
|
Company inheritancy
|
|
|
|
-->
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="hr_timesheet_sheet_company">
|
|
|
|
<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">
|
|
|
|
<field name="rml_footer2" position="after">
|
|
|
|
<newline/>
|
|
|
|
<field name="timesheet_range"/>
|
|
|
|
<field name="timesheet_max_difference"/>
|
|
|
|
<newline/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2007-03-05 18:22:32 +00:00
|
|
|
|
2007-03-26 13:52:53 +00:00
|
|
|
<!--
|
|
|
|
hr.analytic.timesheet inheritancy
|
|
|
|
-->
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="hr_timesheet_line_form">
|
|
|
|
<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">
|
2007-11-21 15:24:43 +00:00
|
|
|
<field name="sheet_id" select="2"/>
|
2007-03-26 13:52:53 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
hr.attendance inheritancy
|
|
|
|
-->
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_attendance_form">
|
|
|
|
<field name="name">hr.attendance.form</field>
|
|
|
|
<field name="model">hr.attendance</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="hr.view_attendance_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="action_desc" position="after">
|
2007-11-21 15:24:43 +00:00
|
|
|
<field name="sheet_id" select="2"/>
|
2007-03-26 13:52:53 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_attendance_tree">
|
|
|
|
<field name="name">hr.attendance.tree</field>
|
|
|
|
<field name="model">hr.attendance</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="inherit_id" ref="hr.view_attendance_tree"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="action_desc" position="after">
|
|
|
|
<field name="sheet_id"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2007-12-18 07:42:53 +00:00
|
|
|
<act_window name="Timesheet by Account"
|
|
|
|
domain="[('sheet_id', '=', active_id)]"
|
|
|
|
res_model="hr_timesheet_sheet.sheet.account"
|
|
|
|
src_model="hr_timesheet_sheet.sheet"
|
|
|
|
id="act_hr_timesheet_sheet_sheet_by_day"/>
|
|
|
|
<act_window name="Timesheet by Day"
|
|
|
|
domain="[('sheet_id', '=', active_id)]"
|
|
|
|
res_model="hr_timesheet_sheet.sheet.day"
|
|
|
|
src_model="hr_timesheet_sheet.sheet"
|
|
|
|
id="act_hr_timesheet_sheet_sheet_by_account"/>
|
|
|
|
|
|
|
|
|
|
|
|
<act_window name="Timesheet Lines"
|
2007-05-24 05:26:36 +00:00
|
|
|
domain="[('sheet_id', '=', active_id)]"
|
|
|
|
res_model="hr.analytic.timesheet"
|
|
|
|
src_model="hr_timesheet_sheet.sheet"
|
|
|
|
id="act_hr_timesheet_sheet_sheet_2_hr_analytic_timesheet"/>
|
|
|
|
|
|
|
|
<act_window name="Attendances"
|
|
|
|
domain="[('sheet_id', '=', active_id)]"
|
|
|
|
res_model="hr.attendance"
|
|
|
|
src_model="hr_timesheet_sheet.sheet"
|
|
|
|
id="act_hr_timesheet_sheet_sheet_2_hr_attendance"/>
|
|
|
|
|
2007-08-09 12:55:50 +00:00
|
|
|
<record model="ir.ui.view" id="hr_timesheet_sheet_tree_simplified">
|
|
|
|
<field name="name">hr.timesheet.sheet.tree.simplified</field>
|
|
|
|
<field name="model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="priority" eval="20"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Timesheets">
|
|
|
|
<field name="date_from" />
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="name" />
|
|
|
|
<field name="total_attendance"/>
|
|
|
|
<field name="total_timesheet"/>
|
|
|
|
<field name="state"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="act_hr_timesheet_sheet_unvalidate">
|
|
|
|
<field name="name">Unvalidated Timesheets</field>
|
|
|
|
<field name="res_model">hr_timesheet_sheet.sheet</field>
|
|
|
|
<field name="domain">[('state','<>','done'),('date_to','<',time.strftime('%Y-%m-%d'))]</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_id" ref="hr_timesheet_sheet_tree_simplified"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem name="Human Resources/Timesheets/All Timesheets/Timesheets Unvalidate"
|
|
|
|
id="menu_hr_timesheet_sheet_unvalidate"
|
|
|
|
action="act_hr_timesheet_sheet_unvalidate"/>
|
2007-03-05 18:22:32 +00:00
|
|
|
</data>
|
|
|
|
</terp>
|