~julius-network-solutions/openobject-addons/trunk-bug-wiki-image

« back to all changes in this revision

Viewing changes to share/wizard/share_wizard_view.xml

[ADD] create claim from delivery

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 id="share_step0_form" model="ir.ui.view">
 
6
            <field name="name">share.step0.form</field>
 
7
            <field name="model">share.create</field>
 
8
            <field name="type">form</field>
 
9
            <field name="arch" type="xml">
 
10
                        <form string="Share">
 
11
              <separator colspan="4" string="Step 1: Chose the action and the additional domain"/>                        
 
12
                          <field name="action_id"/>
 
13
              <field name="domain"/>
 
14
                          <separator colspan="4"/>
 
15
                           <group col="2" colspan="4">
 
16
                        <button special="cancel"  string="Cancel" icon='gtk-cancel'/>
 
17
                                        <button name="do_step_1" string="Next" colspan="1" type="object" icon="gtk-go-forward"/>
 
18
                                </group>
 
19
                        </form>
 
20
            </field>
 
21
        </record>
 
22
 
 
23
        <record id="share_step1_form" model="ir.ui.view">
 
24
            <field name="name">share.step1.form</field>
 
25
            <field name="model">share.create</field>
 
26
            <field name="type">form</field>
 
27
            <field name="arch" type="xml">
 
28
                        <form string="Share">              
 
29
                          <separator colspan="4" string="Step 2: Chose the User type"/>              
 
30
                          <field name="user_type"/>
 
31
              <newline/>
 
32
              <group colspan="4" attrs="{'invisible':[('user_type','!=','existing')]}">
 
33
                  <separator colspan="4" string="Exising Users"/>
 
34
                  <field colspan="4" nolabel="1" name="user_ids"  domain="[('share_user','=',True)]"/>
 
35
              </group>
 
36
              <group colspan="4" attrs="{'invisible':[('user_type','!=','new')]}">
 
37
                <separator colspan="4" string="New Users"/>
 
38
                <field colspan="4" nolabel="1" name="new_user"/>
 
39
              </group>
 
40
                          <separator colspan="4"/>
 
41
                           <group col="3" colspan="4">
 
42
                        <button special="cancel"  string="Cancel" icon='gtk-cancel'/>
 
43
                    <button name="do_step_1" string="Previous" colspan="1" type="object" icon="gtk-go-back"/>
 
44
                                        <button name="do_step_2" string="Next" colspan="1" type="object" icon="gtk-go-forward"/>
 
45
                                </group>
 
46
                        </form>
 
47
            </field>
 
48
        </record>
 
49
 
 
50
        <record id="share_step2_form" model="ir.ui.view">
 
51
            <field name="name">share.step2.form</field>
 
52
            <field name="model">share.create</field>
 
53
            <field name="type">form</field>
 
54
            <field name="arch" type="xml">
 
55
                        <form string="Share">              
 
56
                          <separator colspan="4" string="Step 3: Chose Access Mode"/>
 
57
              <group colspan="4" attrs="{'invisible':[('read_access','!=',True)]}">              
 
58
                          <field name="access_mode" attrs="{'readonly':[('write_access','!=',True)]}"/>              
 
59
              </group>              
 
60
                          <separator colspan="4"/>
 
61
                           <group col="3" colspan="4">
 
62
                        <button special="cancel"  string="Cancel" icon='gtk-cancel'/>
 
63
                    <button name="do_step_2" string="Previous" colspan="1" type="object" icon="gtk-go-back"/>
 
64
                                        <button name="do_step_3" string="Next" colspan="1" type="object" icon="gtk-go-forward"/>
 
65
                                </group>
 
66
                        </form>
 
67
            </field>
 
68
        </record>
 
69
 
 
70
         
 
71
 
 
72
       <record id="action_share_wizard" model="ir.actions.act_window">
 
73
            <field name="name">Share Access Rules</field>
 
74
            <field name="type">ir.actions.act_window</field>
 
75
            <field name="res_model">share.create</field>
 
76
            <field name="view_type">form</field>
 
77
            <field name="view_mode">form</field>
 
78
            <field name="view_id" ref="share_step0_form"/>              
 
79
            <field name="target">new</field>
 
80
        </record>
 
81
 
 
82
        <menuitem action="action_share_wizard" id="menu_action_share_wizard" parent="base.menu_security"/>
 
83
        
 
84
 
 
85
        <record id="share_result_form" model="ir.ui.view">
 
86
            <field name="name">share.result.form</field>
 
87
            <field name="model">share.result</field>
 
88
            <field name="type">form</field>
 
89
            <field name="arch" type="xml">
 
90
                        <form string="Share">
 
91
              <separator colspan="4" string="Step 4: Share Users Detail"/>                        
 
92
                          <field name="users" colspan="4" nolabel="1"/>              
 
93
                          <separator colspan="4"/>
 
94
                           <group col="2" colspan="4">
 
95
                        <button special="cancel"  string="Cancel" icon='gtk-cancel'/>
 
96
                                        <button name="do_send_email" string="Send Email" type="object" icon="gtk-apply"/>
 
97
                                </group>
 
98
                        </form>
 
99
            </field>
 
100
        </record>
 
101
        
 
102
 
 
103
        
 
104
 
 
105
                 
 
106
 
 
107
        </data>
 
108
</openerp>