~openerp-community/openobject-addons/trunk-addons-community

« back to all changes in this revision

Viewing changes to backup_system/backup_view.xml

  • Committer: Serpent Consulting Services
  • Date: 2012-10-18 12:46:57 UTC
  • Revision ID: support@serpentcs.com-20121018124657-38dwjshyfumtvtua
[MIGRATE] backup_syste, base_partner_security, crm_task : Made modules intallable and compatible to 6.1 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<openerp>
3
 
    <data>
4
 
 
5
 
<!--        Backup run wizard-->
6
 
 
7
 
        <record id="view_backup_run_form" model="ir.ui.view">
8
 
            <field name="name">backup.run.form</field>
9
 
            <field name="model">backup.run</field>
10
 
            <field name="type">form</field>
11
 
            <field name="arch" type="xml">
12
 
                <form>
13
 
                        <field name="backup_id" invisible="True"/>
14
 
                        <field name="task_ids" nolabel="1"/>
15
 
                        <field name="target_id"/>
16
 
                        <group col="2" colspan="2">
17
 
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
18
 
                        <button icon="gtk-ok" name="action_run" string="Run" type="object"/>
19
 
                    </group>
20
 
                                </form>
21
 
            </field>
22
 
        </record>
23
 
        <record id="action_backup_run_form" model="ir.actions.act_window">
24
 
            <field name="name">Run Backup</field>
25
 
            <field name="type">ir.actions.act_window</field>
26
 
            <field name="res_model">backup.run</field>
27
 
            <field name="src_model">backup</field>
28
 
            <field name="view_type">form</field>
29
 
            <field name="view_mode">form</field>
30
 
            <field name="target">new</field>
31
 
        </record>
32
 
 
33
 
<!--        Backup main view-->
34
 
 
35
 
        <record id="view_backup_form" model="ir.ui.view">
36
 
            <field name="name">backup.form</field>
37
 
            <field name="model">backup</field>
38
 
            <field name="type">form</field>
39
 
            <field name="arch" type="xml">
40
 
                <form>
41
 
                        <field name="name"/>
42
 
                        <newline/>
43
 
                        <field name="task_ids" nolabel="1"/>
44
 
                        <field name="target_ids" nolabel="1"/>
45
 
                        <newline/>
46
 
                        <field name="param_ids" nolabel="1"/>
47
 
                    <button name="%(action_backup_run_form)d" string="Run" type="action"/>
48
 
                                </form>
49
 
            </field>
50
 
        </record>
51
 
        <record id="action_backup_form" model="ir.actions.act_window">
52
 
            <field name="name">Backup Configurations</field>
53
 
            <field name="type">ir.actions.act_window</field>
54
 
            <field name="res_model">backup</field>
55
 
            <field name="view_type">form</field>
56
 
        </record>
57
 
        <menuitem action="action_backup_form" id="menu_backup_form" parent="base.menu_administration"/>
58
 
 
59
 
        <act_window
60
 
            domain="[('backup_id','=',active_id)]"
61
 
            id="act_job_backup_open"
62
 
            name="Jobs"
63
 
            res_model="backup.job"
64
 
            src_model="backup"/>
65
 
        <record id="ir_act_job_backup_open" model="ir.values">
66
 
            <field name="key2">tree_but_open</field>
67
 
            <field name="model">stock.transport</field>
68
 
            <field name="name">Jobs</field>
69
 
            <field eval="'ir.actions.act_window,%d'%act_job_backup_open" name="value"/>
70
 
            <field eval="True" name="object"/>
71
 
        </record>
72
 
 
73
 
<!--Task-->
74
 
 
75
 
        <record id="view_backup_task_form" model="ir.ui.view">
76
 
            <field name="name">backup.task.form</field>
77
 
            <field name="model">backup.task</field>
78
 
            <field name="type">form</field>
79
 
            <field name="arch" type="xml">
80
 
                <form>
81
 
                        <notebook colspan="4">
82
 
                                <page string="Basic">
83
 
                                        <field name="name"/>
84
 
                                        <field name="type"/>
85
 
                                        <field name="from_path" colspan="4"/>
86
 
                                        <field name="delete_archived" attrs="{'readonly': [('type','=','sync')]}"/>
87
 
                                </page>
88
 
                                <page string="Code">
89
 
                                        <field name="code" colspan="4" nolabel="1"/>
90
 
                                </page>
91
 
                                <page string="Latest Log">
92
 
                                        <field name="log" nolabel="1"/>
93
 
                                </page>
94
 
                        </notebook>
95
 
                                </form>
96
 
            </field>
97
 
        </record>
98
 
 
99
 
<!--Target-->
100
 
 
101
 
        <record id="view_backup_target_tree" model="ir.ui.view">
102
 
            <field name="name">backup.target.tree</field>
103
 
            <field name="model">backup.target</field>
104
 
            <field name="type">tree</field>
105
 
            <field name="arch" type="xml">
106
 
                <tree string="Targets">
107
 
                                <field name="name"/>
108
 
                                <field name="storage_id"/>
109
 
                                        <field name="freespace"/>
110
 
                                </tree>
111
 
            </field>
112
 
        </record>
113
 
 
114
 
        <record id="view_backup_target_form" model="ir.ui.view">
115
 
            <field name="name">backup.target.form</field>
116
 
            <field name="model">backup.target</field>
117
 
            <field name="type">form</field>
118
 
            <field name="arch" type="xml">
119
 
                <form>
120
 
                        <notebook colspan="4">
121
 
                                <page string="Basic">
122
 
                                        <field name="name"/>
123
 
                                        <field name="storage_id" attrs="{'required': [('type','=','hdd')]}"/>
124
 
                                        <field name="type"/>
125
 
                                        <field name="path" colspan="4"/>
126
 
                                        <group col="2" colspan="2">
127
 
                                        <button icon="gtk-connect" name="connect" string="Connect" type="object"/>
128
 
                                        <button icon="gtk-disconnect" name="disconnect" string="Disconnect" type="object"/>
129
 
                                    </group>
130
 
                                </page>
131
 
                                <page string="Code">
132
 
                                        <field name="connect_code" colspan="4"/>
133
 
                                        <field name="disconnect_code" colspan="4"/>
134
 
                                        <field name="freespace_code" colspan="4"/>
135
 
                                </page>
136
 
                                <page string="Latest Log">
137
 
                                        <field name="log" nolabel="1"/>
138
 
                                </page>
139
 
                        </notebook>
140
 
                                </form>
141
 
            </field>
142
 
        </record>
143
 
 
144
 
<!--Storage-->
145
 
 
146
 
        <record id="view_backup_storage_form" model="ir.ui.view">
147
 
            <field name="name">backup.storage.form</field>
148
 
            <field name="model">backup.storage</field>
149
 
            <field name="type">form</field>
150
 
            <field name="arch" type="xml">
151
 
                <form>
152
 
                        <field name="name"/>
153
 
                        <field name="uuid"/>
154
 
                    <button icon="gtk-ok" name="action_enable" string="Enable" type="object"/>
155
 
                                </form>
156
 
            </field>
157
 
        </record>
158
 
 
159
 
<!--Parameter-->
160
 
 
161
 
        <record id="view_backup_param_form" model="ir.ui.view">
162
 
            <field name="name">backup.param.form</field>
163
 
            <field name="model">backup.param</field>
164
 
            <field name="type">form</field>
165
 
            <field name="arch" type="xml">
166
 
                <form>
167
 
                        <field name="name"/>
168
 
                        <field name="value"/>
169
 
                                </form>
170
 
            </field>
171
 
        </record>
172
 
 
173
 
<!--Job-->
174
 
 
175
 
        <record id="view_backup_job_tree" model="ir.ui.view">
176
 
            <field name="name">backup.job.tree</field>
177
 
            <field name="model">backup.job</field>
178
 
            <field name="type">tree</field>
179
 
            <field name="arch" type="xml">
180
 
                <tree colors="blue:type=='immutable'">
181
 
                        <field name="task_id"/>
182
 
                        <field name="date"/>
183
 
                        <field name="storage_id"/>
184
 
                                </tree>
185
 
            </field>
186
 
        </record>
187
 
 
188
 
        <record id="view_backup_job_form" model="ir.ui.view">
189
 
            <field name="name">backup.job.form</field>
190
 
            <field name="model">backup.job</field>
191
 
            <field name="type">form</field>
192
 
            <field name="arch" type="xml">
193
 
                <form>
194
 
                        <field name="name"/>
195
 
                        <field name="date"/>
196
 
                        <field name="task_id"/>
197
 
                        <field name="storage_id"/>
198
 
                        <field name="type"/>
199
 
                        <field name="contents" colspan="4"/>
200
 
                                </form>
201
 
            </field>
202
 
        </record>
203
 
 
204
 
    </data>
 
3
        <data>
 
4
 
 
5
                <!-- Backup run wizard -->
 
6
 
 
7
                <record id="view_backup_run_form" model="ir.ui.view">
 
8
                        <field name="name">backup.run.form</field>
 
9
                        <field name="model">backup.run</field>
 
10
                        <field name="type">form</field>
 
11
                        <field name="arch" type="xml">
 
12
                                <form>
 
13
                                        <field name="backup_id" invisible="True" />
 
14
                                        <field name="task_ids" nolabel="1" />
 
15
                                        <field name="target_id" />
 
16
                                        <group col="2" colspan="2">
 
17
                                                <button icon="gtk-cancel" special="cancel" string="Cancel" />
 
18
                                                <button icon="gtk-ok" name="action_run" string="Run" type="object" />
 
19
                                        </group>
 
20
                                </form>
 
21
                        </field>
 
22
                </record>
 
23
                <record id="action_backup_run_form" model="ir.actions.act_window">
 
24
                        <field name="name">Run Backup</field>
 
25
                        <field name="type">ir.actions.act_window</field>
 
26
                        <field name="res_model">backup.run</field>
 
27
                        <field name="src_model">backup</field>
 
28
                        <field name="view_type">form</field>
 
29
                        <field name="view_mode">form</field>
 
30
                        <field name="target">new</field>
 
31
                </record>
 
32
 
 
33
                <!-- Backup main view -->
 
34
 
 
35
                <record id="view_backup_form" model="ir.ui.view">
 
36
                        <field name="name">backup.form</field>
 
37
                        <field name="model">backup</field>
 
38
                        <field name="type">form</field>
 
39
                        <field name="arch" type="xml">
 
40
                                <form>
 
41
                                        <field name="name" />
 
42
                                        <newline />
 
43
                                        <field name="task_ids" nolabel="1" />
 
44
                                        <field name="target_ids" nolabel="1" />
 
45
                                        <newline />
 
46
                                        <field name="param_ids" nolabel="1" />
 
47
                                        <button name="%(action_backup_run_form)d" string="Run" type="action" />
 
48
                                </form>
 
49
                        </field>
 
50
                </record>
 
51
                <record id="action_backup_form" model="ir.actions.act_window">
 
52
                        <field name="name">Backup Configurations</field>
 
53
                        <field name="type">ir.actions.act_window</field>
 
54
                        <field name="res_model">backup</field>
 
55
                        <field name="view_type">form</field>
 
56
                </record>
 
57
                <menuitem action="action_backup_form" id="menu_backup_form"
 
58
                        parent="base.menu_administration" />
 
59
 
 
60
                <act_window domain="[('backup_id','=',active_id)]" id="act_job_backup_open"
 
61
                        name="Jobs" res_model="backup.job" src_model="backup" />
 
62
                <record id="ir_act_job_backup_open" model="ir.values">
 
63
                        <field name="key2">tree_but_open</field>
 
64
                        <field name="model">stock.transport</field>
 
65
                        <field name="name">Jobs</field>
 
66
                        <field eval="'ir.actions.act_window,%d'%act_job_backup_open"
 
67
                                name="value" />
 
68
                        <field eval="True" name="object" />
 
69
                </record>
 
70
 
 
71
                <!--Task -->
 
72
 
 
73
                <record id="view_backup_task_form" model="ir.ui.view">
 
74
                        <field name="name">backup.task.form</field>
 
75
                        <field name="model">backup.task</field>
 
76
                        <field name="type">form</field>
 
77
                        <field name="arch" type="xml">
 
78
                                <form>
 
79
                                        <notebook colspan="4">
 
80
                                                <page string="Basic">
 
81
                                                        <field name="name" />
 
82
                                                        <field name="type" />
 
83
                                                        <field name="from_path" colspan="4" />
 
84
                                                        <field name="delete_archived" attrs="{'readonly': [('type','=','sync')]}" />
 
85
                                                </page>
 
86
                                                <page string="Code">
 
87
                                                        <field name="code" colspan="4" nolabel="1" />
 
88
                                                </page>
 
89
                                                <page string="Latest Log">
 
90
                                                        <field name="log" nolabel="1" />
 
91
                                                </page>
 
92
                                        </notebook>
 
93
                                </form>
 
94
                        </field>
 
95
                </record>
 
96
 
 
97
                <!--Target -->
 
98
 
 
99
                <record id="view_backup_target_tree" model="ir.ui.view">
 
100
                        <field name="name">backup.target.tree</field>
 
101
                        <field name="model">backup.target</field>
 
102
                        <field name="type">tree</field>
 
103
                        <field name="arch" type="xml">
 
104
                                <tree string="Targets">
 
105
                                        <field name="name" />
 
106
                                        <field name="storage_id" />
 
107
                                        <field name="freespace" />
 
108
                                </tree>
 
109
                        </field>
 
110
                </record>
 
111
 
 
112
                <record id="view_backup_target_form" model="ir.ui.view">
 
113
                        <field name="name">backup.target.form</field>
 
114
                        <field name="model">backup.target</field>
 
115
                        <field name="type">form</field>
 
116
                        <field name="arch" type="xml">
 
117
                                <form>
 
118
                                        <notebook colspan="4">
 
119
                                                <page string="Basic">
 
120
                                                        <field name="name" />
 
121
                                                        <field name="storage_id" attrs="{'required': [('type','=','hdd')]}" />
 
122
                                                        <field name="type" />
 
123
                                                        <field name="path" colspan="4" />
 
124
                                                        <group col="2" colspan="2">
 
125
                                                                <button icon="gtk-connect" name="connect" string="Connect"
 
126
                                                                        type="object" />
 
127
                                                                <button icon="gtk-disconnect" name="disconnect" string="Disconnect"
 
128
                                                                        type="object" />
 
129
                                                        </group>
 
130
                                                </page>
 
131
                                                <page string="Code">
 
132
                                                        <field name="connect_code" colspan="4" />
 
133
                                                        <field name="disconnect_code" colspan="4" />
 
134
                                                        <field name="freespace_code" colspan="4" />
 
135
                                                </page>
 
136
                                                <page string="Latest Log">
 
137
                                                        <field name="log" nolabel="1" />
 
138
                                                </page>
 
139
                                        </notebook>
 
140
                                </form>
 
141
                        </field>
 
142
                </record>
 
143
 
 
144
                <!--Storage -->
 
145
 
 
146
                <record id="view_backup_storage_form" model="ir.ui.view">
 
147
                        <field name="name">backup.storage.form</field>
 
148
                        <field name="model">backup.storage</field>
 
149
                        <field name="type">form</field>
 
150
                        <field name="arch" type="xml">
 
151
                                <form>
 
152
                                        <field name="name" />
 
153
                                        <field name="uuid" />
 
154
                                        <button icon="gtk-ok" name="action_enable" string="Enable"
 
155
                                                type="object" />
 
156
                                </form>
 
157
                        </field>
 
158
                </record>
 
159
 
 
160
                <!--Parameter -->
 
161
 
 
162
                <record id="view_backup_param_form" model="ir.ui.view">
 
163
                        <field name="name">backup.param.form</field>
 
164
                        <field name="model">backup.param</field>
 
165
                        <field name="type">form</field>
 
166
                        <field name="arch" type="xml">
 
167
                                <form>
 
168
                                        <field name="name" />
 
169
                                        <field name="value" />
 
170
                                </form>
 
171
                        </field>
 
172
                </record>
 
173
 
 
174
                <!--Job -->
 
175
 
 
176
                <record id="view_backup_job_tree" model="ir.ui.view">
 
177
                        <field name="name">backup.job.tree</field>
 
178
                        <field name="model">backup.job</field>
 
179
                        <field name="type">tree</field>
 
180
                        <field name="arch" type="xml">
 
181
                                <tree colors="blue:type=='immutable'">
 
182
                                        <field name="task_id" />
 
183
                                        <field name="date" />
 
184
                                        <field name="storage_id" />
 
185
                                </tree>
 
186
                        </field>
 
187
                </record>
 
188
 
 
189
                <record id="view_backup_job_form" model="ir.ui.view">
 
190
                        <field name="name">backup.job.form</field>
 
191
                        <field name="model">backup.job</field>
 
192
                        <field name="type">form</field>
 
193
                        <field name="arch" type="xml">
 
194
                                <form>
 
195
                                        <field name="name" />
 
196
                                        <field name="date" />
 
197
                                        <field name="task_id" />
 
198
                                        <field name="storage_id" />
 
199
                                        <field name="type" />
 
200
                                        <field name="contents" colspan="4" />
 
201
                                </form>
 
202
                        </field>
 
203
                </record>
 
204
 
 
205
        </data>
205
206
</openerp>
 
 
b'\\ No newline at end of file'