~pau-tecnoba/school-base-openerp-module/pau

« back to all changes in this revision

Viewing changes to school_attendance/wizards/school_seance_annotations_by_student.xml

  • Committer: Pere Erro
  • Date: 2012-09-11 10:25:55 UTC
  • Revision ID: pereerro@terra.es-20120911102555-ub0y5jq7p9te97ij
[FIX] Bug #1048613 fixed
[IMP] New wizard to tutorize students

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
    
 
5
        <record forcecreate="True" id="property_state_absent" model="ir.property">
 
6
            <field name="name">property_state_absent</field>
 
7
            <field name="fields_id" search="[('model','=','school.seance_annotations.by_student'),('name','=','state_absence')]"/>
 
8
            <field eval="'school_attendance.aux.fields_view,'+str(ref('school_attendance.aux_field_view_0'))" name="value"/>
 
9
        </record>
 
10
 
 
11
        <record forcecreate="True" id="property_state_delay" model="ir.property">
 
12
            <field name="name">property_state_delay</field>
 
13
            <field name="fields_id" search="[('model','=','school.seance_annotations.by_student'),('name','=','state_delay')]"/>
 
14
            <field eval="'school_attendance.aux.fields_view,'+str(ref('school_attendance.aux_field_view_1'))" name="value"/>
 
15
        </record>
 
16
 
 
17
        <record id="aux_field_view_just" model="school_attendance.aux.fields_view">
 
18
            <field name="name">Justified</field>
 
19
            <field name="short_name">jus</field>
 
20
            <field name="anno_subs" eval="ref('contact_type_annotation_just')" />
 
21
            <field name="check_state">unjustified</field>
 
22
            <field name="invert" eval="1" />
 
23
            <field name="letter">J</field>
 
24
        </record>
 
25
    
 
26
        <record forcecreate="True" id="property_state_unjustified" model="ir.property">
 
27
            <field name="name">property_state_unjustified</field>
 
28
            <field name="fields_id" search="[('model','=','school.seance_annotations.by_student'),('name','=','state_unjustified')]"/>
 
29
            <field eval="'school_attendance.aux.fields_view,'+str(ref('aux_field_view_just'))" name="value"/>
 
30
        </record>
 
31
 
 
32
  <!-- school.seance_annotations.by_student -->
 
33
        <record model="ir.ui.view" id="school_seance_annotations_by_student_form">
 
34
            <field name="name">school.seance_annotations.by_student.form</field>
 
35
            <field name="model">school.seance_annotations.by_student</field>
 
36
            <field name="type">form</field>
 
37
            <field name="arch" type="xml">
 
38
                <form string="Seances annotations by student" >
 
39
                    <field name="date_from" />
 
40
                    <field name="date_to" />
 
41
                    <group colspan="4" col="2" >
 
42
                        <button name="action_cancel" string="_Cancel" icon="gtk-cancel" special="cancel" />
 
43
                        <button name="action_go_form" type="object" string="_Apply" icon="gtk-apply" />
 
44
                    </group>
 
45
                </form>
 
46
            </field>
 
47
        </record>
 
48
 
 
49
        <record model="ir.actions.act_window" id="school_seance_annotations_by_student_act">
 
50
            <field name="name">Seances annotations Wizard</field>
 
51
            <field name="res_model">school.seance_annotations.by_student</field>
 
52
            <field name="view_type">form</field>
 
53
            <field name="view_mode">form</field>
 
54
            <field name="view_id" ref="school_seance_annotations_by_student_form" />
 
55
            <field name="target">new</field>
 
56
        </record>
 
57
 
 
58
        <record id="ir_school_seance_annotations_by_student" model="ir.values">
 
59
            <field eval="'client_action_multi'" name="key2"/>
 
60
            <field eval="'res.partner.contact'" name="model"/>
 
61
            <field name="name">Seances annotations</field>
 
62
            <field eval="'ir.actions.act_window,%d'%school_seance_annotations_by_student_act" name="value"/>
 
63
            <field eval="True" name="object"/>
 
64
        </record>
 
65
 
 
66
<!-- step 2 -->
 
67
 
 
68
        <record model="ir.ui.view" id="school_seance_annotations_by_student_form2">
 
69
            <field name="name">school.seance_annotations.by_student.form</field>
 
70
            <field name="model">school.seance_annotations.by_student</field>
 
71
            <field name="type">form</field>
 
72
            <field name="arch" type="xml">
 
73
                <form string="Seances annotations by student" >
 
74
                        <group colspan="4" col="4">
 
75
                            <field name="date_from" readonly="1" />
 
76
                            <field name="date_to" readonly="1" />
 
77
                        </group>
 
78
                    <group colspan="4" col="4" >
 
79
                        <button name="action_cancel" string="_Cancel" icon="gtk-cancel" special="cancel" />
 
80
                        <button name="action_update" type="object" string="_Apply" icon="gtk-apply" />
 
81
                        <button name="action_next_days" type="object" string="_Next" icon="gtk-next" />
 
82
                        <button name="action_previous_days" type="object" string="_Previous" icon="gtk-next" />
 
83
                    </group>
 
84
                </form>
 
85
            </field>
 
86
        </record>
 
87
 
 
88
        <record model="ir.actions.act_window" id="school_seance_annotations_by_student_act2">
 
89
            <field name="name">Seances annotations</field>
 
90
            <field name="res_model">school.seance_annotations.by_student</field>
 
91
            <field name="view_type">form</field>
 
92
            <field name="view_mode">form</field>
 
93
            <field name="view_id" ref="school_seance_annotations_by_student_form2" />
 
94
            <field name="target">new</field>
 
95
        </record>
 
96
 
 
97
 
 
98
    </data>
 
99
</openerp>