<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
-
+
<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">search</field>
<field name="arch" type="xml">
<search string="Search Account">
- <group col="10" colspan="4">
+ <group>
<field name="sheet_id" />
<field name="name" groups="analytic.group_analytic_accounting"/>
<field name="invoice_rate"/>
<field name="arch" type="xml">
<form string="Timesheet">
<group colspan="4" col="6">
- <field name="employee_id"/>
+ <field name="employee_id" on_change="onchange_employee_id(employee_id)"/>
<field name="user_id" invisible="1"/>
<field name="date_from"/>
<field name="date_to"/>
</tree>
</field>
<group col="4" colspan="1">
- <field name="state_attendance"/>
- <button name="sign_in" string="Sign In" type="object" icon="terp-gtk-jump-to-ltr" attrs="{'invisible':[('state_attendance','<>','absent')]}"/>
- <button name="sign_out" string="Sign Out" type="object" icon="terp-gtk-jump-to-rtl" attrs="{'invisible':[('state_attendance','<>','present')]}"/>
- <field name="total_attendance_day" widget="float_time" colspan="4"/>
+ <field name="state_attendance"/>
+ <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"/>
+ <field name="total_attendance_day" widget="float_time" colspan="4"/>
</group>
<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 Lines">
</page>
</notebook>
<group col="6" colspan="4">
- <field name="state"/>
- <button name="button_confirm" states="draft" string="Submit to Manager" type="object" icon="terp-check"/>
+ <field name="state" widget="statusbar" statusbar_visible="new,confirm,done"/>
+ <button name="button_confirm" states="draft" string="Submited to Manager" type="object" icon="terp-check"/>
<button name="action_set_to_draft" states="done" string="Set to Draft" type="object" icon="terp-stock_effects-object-colorize"/>
<button name="cancel" states="confirm" string="Refuse" type="workflow" icon="gtk-cancel" groups="base.group_hr_user"/>
<button name="done" states="confirm" string="Approve" type="workflow" icon="terp-camera_test" groups="base.group_hr_user"/>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Search Timesheet">
- <group col="10" colspan="4">
+ <group>
<filter icon="terp-document-new" string="In Draft" domain="[('state','in',('draft', 'new'))]" help="Unvalidated Timesheets"/>
<filter icon="terp-camera_test" string="To Approve" domain="[('state','=','confirm')]" help="Confirmed Timesheets"/>
<separator orientation="vertical"/>
- <field name="employee_id" select="1"/>
+ <field name="employee_id"/>
<field name="date_from"/>
<field name="department_id" widget="selection">
<filter icon="terp-personal+"
<field name="res_model">hr_timesheet_sheet.sheet</field>
<field name="view_type">form</field>
<field name="view_id" eval="False"/>
- <field name="context">{'search_default_my_timesheet':1, }</field>
+ <field name="context">{'search_default_my_timesheet':1}</field>
<field name="search_view_id" ref="view_hr_timesheet_sheet_filter"/>
<field name="help">Check your timesheets for a specific period. You can also encode time spent on a project (i.e. an analytic account) thus generating costs in the analytic account concerned.</field>
</record>
<field name="type">tree</field>
<field eval="10" name="priority"/>
<field name="arch" type="xml">
- <tree colors="blue:state in ('draft');black:state in ('confirm','new');gray:state in('done')" string="Timesheets">
+ <tree colors="blue:state == 'draft';black:state in ('confirm','new');gray:state == 'done'" string="Timesheets">
<field name="employee_id"/>
<field name="date_from"/>
<field name="date_to"/>
<field name="department_id"/>
- <field name="total_attendance"/>
- <field name="total_timesheet"/>
- <field name="total_difference"/>
+ <field name="total_attendance" widget="float_time"/>
+ <field name="total_timesheet" widget="float_time"/>
+ <field name="total_difference" widget="float_time"/>
<field name="state"/>
</tree>
</field>