1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="view_hr_timesheet_sign_in_message" model="ir.ui.view">
5 <field name="name">hr.sign.in.project.message.form</field>
6 <field name="model">hr.sign.in.project</field>
7 <field name="type">form</field>
8 <field name="arch" type="xml">
9 <form string="Sign In/Out By Project">
10 <separator colspan="4" string="Sign In/Out By Project"/>
11 <label colspan="4" nolabel="1" string="Employees can encode their time spent on the different projects they are assigned on. A project is an analytic account and the time spent on a project generates costs on the analytic account. This feature allows to record at the same time the attendance and the timesheet."/>
13 <group colspan="4" col="6">
14 <button icon="gtk-cancel" special="cancel" string="Cancel"/>
15 <button icon="gtk-ok" string="Sign in / Sign out" name="check_state" type="object"/>
21 <record id="view_hr_timesheet_sign_in" model="ir.ui.view">
22 <field name="name">hr.sign.in.project.form</field>
23 <field name="model">hr.sign.in.project</field>
24 <field name="type">form</field>
25 <field name="arch" type="xml">
26 <form string="Sign In/Out By Project">
28 <separator string="Sign in" colspan="4"/>
29 <field name="name" readonly="True" />
30 <field name="state" readonly="True" />
31 <field name="server_date"/>
32 <label string="(local time on the server side)" colspan="2"/>
34 <label string="(Keep empty for current time)" colspan="2"/>
36 <group colspan="4" col="6">
37 <button icon="gtk-cancel" special="cancel" string="Cancel"/>
38 <button icon="gtk-ok" string="Start Working" name="sign_in_result" type="object"/>
44 <record id="action_hr_timesheet_sign_in" model="ir.actions.act_window">
45 <field name="name">Sign in / Sign out by project</field>
46 <field name="res_model">hr.sign.in.project</field>
47 <field name="view_type">form</field>
48 <field name="view_mode">tree,form</field>
49 <field name="view_id" ref="view_hr_timesheet_sign_in_message"/>
50 <field name="target">new</field>
51 <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. This feature allows to record at the same time the attendance and the timesheet.</field>
54 <record id="view_hr_timesheet_sign_out" model="ir.ui.view">
55 <field name="name">hr.sign.out.project.form</field>
56 <field name="model">hr.sign.out.project</field>
57 <field name="type">form</field>
58 <field name="arch" type="xml">
59 <form string="Sign In/Out By Project">
61 <separator string="General Information" colspan="4" />
62 <field name="name" readonly="True" />
63 <field name="state" readonly="True" />
64 <field name="date_start"/>
65 <field name="server_date"/>
66 <separator string="Work done in the last period" colspan="4" />
67 <field name="account_id" colspan="2" groups="analytic.group_analytic_accounting"/>
68 <field name="info" colspan="2"/>
70 <label string="(Keep empty for current_time)" colspan="2"/>
71 <field name="analytic_amount"/>
73 <separator string="" colspan="4" />
74 <group colspan="4" col="6">
75 <button icon="gtk-cancel" special="cancel" string="Cancel"/>
76 <button icon="gtk-ok" string="Change Work" name="sign_out_result" type="object"/>
77 <button icon="gtk-ok" string="Stop Working" name="sign_out_result_end" type="object"/>
83 <record id="action_hr_timesheet_sign_out" model="ir.actions.act_window">
84 <field name="name">Sign in / Sign out by project</field>
85 <field name="res_model">hr.sign.out.project</field>
86 <field name="view_type">form</field>
87 <field name="view_mode">tree,form</field>
88 <field name="view_id" ref="view_hr_timesheet_sign_out"/>
89 <field name="target">new</field>