~ubuntu-branches/ubuntu/quantal/openerp6.1/quantal-proposed

« back to all changes in this revision

Viewing changes to openerp/addons/hr_attendance/wizard/hr_attendance_sign_in_out_view.xml

  • Committer: Package Import Robot
  • Author(s): Yolanda Robla
  • Date: 2012-09-20 15:29:00 UTC
  • Revision ID: package-import@ubuntu.com-20120920152900-woyy3yww8z6acmsk
Tags: upstream-6.1-1+dfsg
ImportĀ upstreamĀ versionĀ 6.1-1+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
    <data>
 
4
        <record id="view_hr_attendance_sigh_in_out" model="ir.ui.view">
 
5
            <field name="name">hr.sign.in.out.form</field>
 
6
            <field name="model">hr.sign.in.out</field>
 
7
            <field name="type">form</field>
 
8
            <field name="arch" type="xml">
 
9
                <form string="Sign in / Sign out">
 
10
                    <separator colspan="4" string="Sign in / Sign out"/>
 
11
                    <label colspan="4" nolabel="1" string="If you need your staff to sign in when they arrive at work and sign out again at the end of the day, OpenERP allows you to manage this with this tool. If each employee has been linked to a system user, then they can encode their time with this action button."/>
 
12
                    <newline/>
 
13
                    <group colspan="4" >
 
14
                    <field name="name" />
 
15
                    <field name="state" />
 
16
                    </group>
 
17
                    <separator colspan="4"/>
 
18
                    <group colspan="4" col="6">
 
19
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
 
20
                        <button icon="terp-gtk-jump-to-ltr" string="Sign in" name="si_check" type="object"/>
 
21
                        <button icon="terp-gtk-jump-to-rtl" string="Sign out" name="so_check" type="object"/>
 
22
                   </group>
 
23
               </form>
 
24
            </field>
 
25
        </record>
 
26
 
 
27
       <record id="view_hr_attendance_message" model="ir.ui.view">
 
28
            <field name="name">hr.sign.in.out.form</field>
 
29
            <field name="model">hr.sign.in.out</field>
 
30
            <field name="type">form</field>
 
31
            <field name="arch" type="xml">
 
32
                <form string="Sign in / Sign out">
 
33
                    <separator string="Sign-Out Entry must follow Sign-In." colspan="4" />
 
34
                    <group colspan="4" col="6">
 
35
                        <button icon="gtk-cancel" special="cancel" string="Ok"/>
 
36
                   </group>
 
37
               </form>
 
38
            </field>
 
39
        </record>
 
40
 
 
41
        <record id="action_hr_attendance_sigh_in_out" model="ir.actions.act_window">
 
42
            <field name="name">Sign in / Sign out</field>
 
43
            <field name="res_model">hr.sign.in.out</field>
 
44
            <field name="view_type">form</field>
 
45
            <field name="view_mode">tree,form</field>
 
46
           <field name="view_id" ref="view_hr_attendance_sigh_in_out"/>
 
47
           <field name="target">new</field>
 
48
           <field name="help">Sign in / Sign out. In some companies, staff have to sign in when they arrive at work and sign out again at the end of the day. If each employee has been linked to a system user, then they can encode their time with this action button.</field>
 
49
        </record>
 
50
 
 
51
        <menuitem action="action_hr_attendance_sigh_in_out" id="menu_hr_attendance_sigh_in_out"
 
52
            parent="menu_hr_attendance" sequence="4"/>
 
53
 
 
54
       <record id="view_hr_attendance_so_ask" model="ir.ui.view">
 
55
            <field name="name">hr.sign.in.out.ask.form</field>
 
56
            <field name="model">hr.sign.in.out.ask</field>
 
57
            <field name="type">form</field>
 
58
            <field name="arch" type="xml">
 
59
                <form string="hr.sign.out.ask">
 
60
                    <group colspan="4" >
 
61
                    <separator string="You did not sign out the last time. Please enter the date and time you signed out." colspan="4" />
 
62
                    <field name="name" />
 
63
                    <field name="last_time" string="Your last sign out" />
 
64
                    </group>
 
65
                    <separator colspan="4" />
 
66
                    <group colspan="4" col="6">
 
67
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
 
68
                        <button icon="gtk-go-back" string="Sign in" name="sign_in" type="object"/>
 
69
                   </group>
 
70
               </form>
 
71
            </field>
 
72
        </record>
 
73
 
 
74
       <record id="view_hr_attendance_si_ask" model="ir.ui.view">
 
75
            <field name="name">hr.sign.in.out.ask.form</field>
 
76
            <field name="model">hr.sign.in.out.ask</field>
 
77
            <field name="type">form</field>
 
78
            <field name="arch" type="xml">
 
79
                <form string="hr.sign.in.out.ask">
 
80
                    <group colspan="4" >
 
81
                    <separator string="You did not sign in the last time. Please enter the date and time you signed in." colspan="4" />
 
82
                    <field name="name" />
 
83
                    <field name="last_time" string="Your last sign in" />
 
84
                    </group>
 
85
                    <separator colspan="4" />
 
86
                    <group colspan="4" col="6">
 
87
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
 
88
                        <button icon="gtk-go-back" string="Sign out" name="sign_out" type="object"/>
 
89
                   </group>
 
90
               </form>
 
91
            </field>
 
92
        </record>
 
93
 
 
94
    </data>
 
95
</openerp>