~openerp-commiter/openobject-addons/extra-6.0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<?xml version="1.0" encoding="UTF-8"?>

<openerp>
	<data>

<!-- contact.annotation -->
        <record model="ir.ui.view" id="contact_annotation_tree_view">
            <field name="name">contact.annotation.tree.all</field>
            <field name="model">contact.annotation</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Annotation">
                    <field name="contact_id" string="Contact" />
                    <field name="anno_type" string="Type" />
                    <field name="valid_from" string="Valid from" />
                    <field name="valid_to" string="Valid to" />
                    <field name="informer" />
                    <field name="creation_date" />
                </tree>
            </field>
        </record>

        <record model="ir.ui.view" id="contact_annotation_form_view">
            <field name="name">contact.annotation.form.all</field>
            <field name="model">contact.annotation</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Annotations">
                    <field name="contact_id" string="Contact" on_change="on_change_contact_id(contact_id,anno_type)" />
                    <field name="informer" />
                    <field name="anno_type" domain="[('id','in',map(int,domain_anno_types.split(',')) )]" string="Type" on_change="on_change_anno_type()" />
                    <field name="anno_subtype" domain="[('anno_type','=',anno_type)]" string="Subtype" />
                    <field name="valid_from" string="Valid from" />
                    <field name="valid_to" string="Valid to" />
                    <field name="creation_date" />
                    <field name="user_id" readonly="1" />
                    <field name="domain_anno_types" invisible="1" />
                    <field name="comment" colspan="4"/>
                </form>
            </field>
        </record>
        <record model="ir.actions.act_window" id="contact_annotation_list_act">
            <field name="name">Annotations</field>
            <field name="res_model">contact.annotation</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
        </record>
		<record id="ir_actions_act_window_view_contact_annotation_0" model="ir.actions.act_window.view">
			<field name="act_window_id" ref="contact_annotation_list_act" />
			<field name="view_mode">tree</field>
			<field name="view_id" ref="contact_annotation_tree_view" />
			<field eval="0" name="sequence" />
		</record>

		<record id="ir_actions_act_window_view_contact_annotation_1" model="ir.actions.act_window.view">
			<field name="act_window_id" ref="contact_annotation_list_act" />
			<field name="view_mode">form</field>
			<field name="view_id" ref="contact_annotation_form_view" />
			<field eval="1" name="sequence" />
		</record>

<!-- contact.partner.function -->

        <record model="ir.ui.view" id="contact_partner_function_tree_view">
            <field name="name">contact.partner.function.tree.all</field>
            <field name="model">contact.partner.function</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Contact-Partner functions">
                    <field name="contact_id" string="Contact" select="1" />
                    <field name="partner_id" string="Partner" select="1" />
                    <field name="function_id" string="Function" select="1" />
                </tree>
            </field>
        </record>

        <record model="ir.ui.view" id="contact_partner_function_form_view">
            <field name="name">contact.partner.function.form.all</field>
            <field name="model">contact.partner.function</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Contact-Partner functions">
                    <field name="contact_id" string="Contact" />
                    <field name="partner_id" string="Partner" />
                    <field name="function_id" string="Function" />
                </form>
            </field>
        </record>
        <record model="ir.actions.act_window" id="contact_partner_function_list_act">
            <field name="name">Contact-Partner functions</field>
            <field name="res_model">contact.partner.function</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
        </record>
		<record id="ir_actions_act_window_view_contact_partner_function_0" model="ir.actions.act_window.view">
			<field name="act_window_id" ref="contact_partner_function_list_act" />
			<field name="view_mode">tree</field>
			<field name="view_id" ref="contact_partner_function_tree_view" />
			<field eval="0" name="sequence" />
		</record>

		<record id="ir_actions_act_window_view_contact_partner_function_1" model="ir.actions.act_window.view">
			<field name="act_window_id" ref="contact_partner_function_list_act" />
			<field name="view_mode">form</field>
			<field name="view_id" ref="contact_partner_function_form_view" />
			<field eval="1" name="sequence" />
		</record>


<!-- contact.annotation.function -->

        <record model="ir.ui.view" id="contact_annotation_function_tree_view">
            <field name="name">contact.annotation.function.tree.all</field>
            <field name="model">contact.annotation.function</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Contact functions">
                    <field name="name" />
                </tree>
            </field>
        </record>

        <record model="ir.ui.view" id="contact_annotation_function_form_view">
            <field name="name">contact.annotation.function.form.all</field>
            <field name="model">contact.annotation.function</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Contact function">
                    <field name="name" />
                </form>
            </field>
        </record>
        <record model="ir.actions.act_window" id="contact_annotation_function_list_act">
            <field name="name">Contact functions</field>
            <field name="res_model">contact.annotation.function</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
        </record>
		<record id="ir_actions_act_window_view_contact_annotation_function_0" model="ir.actions.act_window.view">
			<field name="act_window_id" ref="contact_annotation_function_list_act" />
			<field name="view_mode">tree</field>
			<field name="view_id" ref="contact_annotation_function_tree_view" />
			<field eval="0" name="sequence" />
		</record>

		<record id="ir_actions_act_window_view_contact_annotation_function_1" model="ir.actions.act_window.view">
			<field name="act_window_id" ref="contact_annotation_function_list_act" />
			<field name="view_mode">form</field>
			<field name="view_id" ref="contact_annotation_function_form_view" />
			<field eval="1" name="sequence" />
		</record>


<!-- contact.type_annotation -->

        <record model="ir.ui.view" id="contact_type_annotation_tree_view">
            <field name="name">contact.type_annotation.tree.all</field>
            <field name="model">contact.type_annotation</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Annotation types">
                    <field name="name" />
                    <field name="code" />
                </tree>
            </field>
        </record>

        <record model="ir.ui.view" id="contact_type_annotation_form_view">
            <field name="name">contact.type_annotation.form.all</field>
            <field name="model">contact.type_annotation</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Annotation types">
                    <field name="name" />
                    <field name="code" />
                    <notebook colspan="4">
                        <page string="Informer functions">
                            <field name="perms_functions" nolabel="1">
                                <tree string="Informer functions" editable="bottom" >
                                    <field name="function_id" />
                                    <field name="perm_create" />
                                    <field name="perm_read" />
                                    <field name="perm_write" />
                                    <field name="perm_unlink" />
                                </tree>
                            </field>
                        </page>
                        <page string="Group access">
                            <field name="perms_groups" nolabel="1" >
                                <tree string="Group access" editable="bottom" >
                                    <field name="group_id" />
                                    <field name="perm_create" />
                                    <field name="perm_read" />
                                    <field name="perm_write" />
                                    <field name="perm_unlink" />
                                </tree>
                            </field>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>
        
        <record model="ir.actions.act_window" id="contact_type_annotation_list_act">
            <field name="name">Annotation Types</field>
            <field name="res_model">contact.type_annotation</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
        </record>
		<record id="ir_actions_act_window_view_contact_type_annotation_0" model="ir.actions.act_window.view">
			<field name="act_window_id" ref="contact_type_annotation_list_act" />
			<field name="view_mode">tree</field>
			<field name="view_id" ref="contact_type_annotation_tree_view" />
			<field eval="0" name="sequence" />
		</record>

		<record id="ir_actions_act_window_view_contact_type_annotation_1" model="ir.actions.act_window.view">
			<field name="act_window_id" ref="contact_type_annotation_list_act" />
			<field name="view_mode">form</field>
			<field name="view_id" ref="contact_type_annotation_form_view" />
			<field eval="1" name="sequence" />
		</record>


<!-- contact.subtype_annotation -->

        <record model="ir.ui.view" id="contact_subtype_annotation_tree_view">
            <field name="name">contact.subtype_annotation.tree.all</field>
            <field name="model">contact.subtype_annotation</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Annotation subtypes">
                    <field name="anno_type" />
                    <field name="name" string="Subtype" />
                    <field name="code" />
                </tree>
            </field>
        </record>

        <record model="ir.ui.view" id="contact_subtype_annotation_form_view">
            <field name="name">contact.subtype_annotation.form.all</field>
            <field name="model">contact.subtype_annotation</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Annotation subtype">
                    <field name="anno_type" />
                    <newline />
                    <field name="name" string="Subtype" />
                    <field name="code" />
                </form>
            </field>
        </record>
        <record model="ir.actions.act_window" id="contact_subtype_annotation_list_act">
            <field name="name">Annotation Subtypes</field>
            <field name="res_model">contact.subtype_annotation</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
        </record>
		<record id="ir_actions_act_window_view_contact_subtype_annotation_0" model="ir.actions.act_window.view">
			<field name="act_window_id" ref="contact_subtype_annotation_list_act" />
			<field name="view_mode">tree</field>
			<field name="view_id" ref="contact_subtype_annotation_tree_view" />
			<field eval="0" name="sequence" />
		</record>

		<record id="ir_actions_act_window_view_contact_subtype_annotation_1" model="ir.actions.act_window.view">
			<field name="act_window_id" ref="contact_subtype_annotation_list_act" />
			<field name="view_mode">form</field>
			<field name="view_id" ref="contact_subtype_annotation_form_view" />
			<field eval="1" name="sequence" />
		</record>

        <menuitem
            id="annotations_mi"
            parent="base.menu_base_partner"
            name="Annotations"
            icon="STOCK_APPLY"/>
            <menuitem
                id="contact_annotation_mi"
                parent="annotations_mi"
                action="contact_annotation_list_act"/>
            <menuitem
                id="config_annotations_mi"
                parent="base.menu_base_config"
                name="Annotations"
                icon="STOCK_APPLY" groups="contact_annotation.contact_annotations_manager_group"/>
                <menuitem
                    id="contact_type_annotation_mi"
                    parent="config_annotations_mi"
                    action="contact_type_annotation_list_act"/>
                <menuitem
                    id="contact_subtype_annotation_mi"
                    parent="config_annotations_mi"
                    action="contact_subtype_annotation_list_act"/>
                <menuitem
                    id="contact_annotation_function_mi"
                    parent="config_annotations_mi"
                    action="contact_annotation_function_list_act"/>
                <menuitem
                    id="contact_partner_function_mi"
                    parent="config_annotations_mi"
                    action="contact_partner_function_list_act"/>

    </data>
</openerp>