~magentoerpconnect-core-editors/magentoerpconnect/oerp6.1-stable

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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <!--Magento Product Category Tree/Form view  -->

        <record model="ir.ui.view" id="product_category_form_view_magerp2">
            <field name="name">product.category.form_view_magerp2</field>
            <field name="model">product.category</field>
            <field name="inherit_id" ref="product.product_category_form_view" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <xpath expr="/form/field[@name='sequence']" position="after">
                    <group colspan="4" col="4" attrs="{'invisible':[('magento_exportable','!=',1)],'readonly':[('level','=',0)]}">
                        <separator string="Magento Information" colspan="4" />
                        <notebook attrs="{'invisible':[('magento_exportable','!=',1)]}" colspan="4">
                            <page string="General Information">
                                <group cols="2" colspan="4">
                                    <group col="2" colspan="1">
                                        <separator string="Meta Information" colspan="2" />
                                        <field name="meta_title" colspan="2" />
                                        <field name="meta_keywords" colspan="2" />
                                        <field name="meta_description" colspan="2" />
                                        <field name="url_key" colspan="2" />
                                        <field name="level" colspan="2" />
                                        <field name="include_in_menu" colspan="2" />
                                    </group>
                                    <group col="1" colspan="1">
                                        <separator string="Category Image" />
                                        <field name="image" nolabel="1" widget="image" />
                                        <field name="image_name" colspan="1" nolabel="1" />
                                        <separator string="Description" />
                                        <field name="description" colspan="1" nolabel="1" />
                                        <group col="4" colspan="1">
                                            <field name="is_active" colspan="1" />
                                            <field name="magento_parent_id" />
                                        </group>
                                    </group>
                                </group>

                            </page>
                            <page string="Display Settings">
                                <group col="4" colspan="4">
                                    <separator string="Display Mode" colspan="4" />
                                    <field name="display_mode" colspan="1" nolabel="1" />
                                    <label string="Products only means that the products associated to the category will display, but not any static blocks.Static block only means that the selected static block will display, but none of the products.Static block and products means that the static block will display with the products listed directly beneath it." colspan="3" />
                                </group>
                                <separator string="Use Anchor" colspan="4" />
                                <group col="4" colspan="4">
                                    <field name="is_anchor" colspan="1" />
                                    <label string="Anchored categories will display all products associated to all child categories (and child of child, and child of child of child,etc.) on that category's page, along with the products associated directly to the parent category." colspan="3" />
                                </group>
                                <group col="4" colspan="4">
                                    <group col="10" colspan="2">
                                        <separator string="Available Sorting method" colspan="10" />
                                        <field name="use_default_available_sort_by" string="Use Default Config"/>
                                        <field name="available_sort_by" colspan="10" nolabel="1" attrs="{'readonly':[('use_default_available_sort_by','=',True)],'required':[('use_default_available_sort_by','=',False)]}">
                                            <tree string="Available Sort By">
                                                <field name="label"/>
                                            </tree>
                                        </field>
                                    </group>
                                    <group col="2" colspan="2">
                                        <separator string="Default Sorting method" colspan="2" />
                                        <field name="default_sort_by" widget="selection" nolabel="1" domain="[('attribute_name', '=', 'sort_by')]"/>
                                        <separator string="Page Layout" colspan="2" />
                                        <field name="page_layout" nolabel="1" widget="selection" domain="[('attribute_name', '=', 'page_layout')]"/>
                                    </group>
                                </group>
                            </page>
                        </notebook>
                    </group>
                </xpath>
            </field>
        </record>

        <record model="ir.ui.view" id="product_category_form_view_magerp">
            <field name="name">product.category.form_view_magerp</field>
            <field name="model">product.category</field>
            <field name="inherit_id" ref="product.product_category_form_view" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <field name="sequence" position="after">
                    <field name="magento_exportable" />
                </field>
            </field>
        </record>

        <!--Magento product_attribute_set Tree/Form view  -->
        <record model="ir.ui.view" id="magerp_product_attribute_set_form">
            <field name="name">magerp.product_attribute_set.form</field>
            <field name="model">magerp.product_attribute_set</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Magento Product Attribute Sets">
                    <group col="4" colspan="4">
                        <field name="sort_order" readonly="1" />
                        <field name="attribute_set_name" readonly="1" />
                        <button name="update_attribute" string="Update Attributes" colspan="2" type="object" />
                    </group>
                    <separator string="Attributes in Set" colspan="4" />
                    <field name="attributes" nolabel="1" readonly="1" />
                </form>
            </field>
        </record>
        <record model="ir.ui.view" id="magerp_product_attribute_set_tree">
            <field name="name">magerp.product_attribute_set.tree</field>
            <field name="model">magerp.product_attribute_set</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Magento Product Attribute Set">
                    <field name="sort_order" select="2" />
                    <field name="attribute_set_name" select="1" />
                </tree>
            </field>
        </record>
        <record id="act_magerp_product_attribute_set_form" model="ir.actions.act_window">
            <field name="name">Magento Product Attribute Sets</field>
            <field name="res_model">magerp.product_attribute_set</field>
            <field name="src_model">magerp.product_attribute_set</field>
            <field name="type">ir.actions.act_window</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" ref="magerp_product_attribute_set_tree" />
        </record>

        <!--Magento product_attributes Tree/Form view  -->
        <record model="ir.ui.view" id="magerp_product_attributes_form">
            <field name="name">magerp.product_attributes.form</field>
            <field name="model">magerp.product_attributes</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Magento Product Attributes">
                    <group col="4" colspan="4">
                        <field name="attribute_code" />
                        <field name="frontend_input" select="2" />
                        <field name="frontend_class" />
                        <field name="backend_model" />
                        <field name="backend_type" select="2" />
                        <field name="frontend_label"/>

                        <field name="is_visible_in_advanced_search" select="2" />
                        <field name="is_global" />
                        <field name="is_filterable" />
                        <field name="is_comparable" />
                        <field name="is_visible" />
                        <field name="is_searchable" />
                        <field name="is_user_defined" />
                        <field name="is_configurable" />

                        <field name="is_visible_on_front" />
                        <field name="is_used_for_price_rules" />
                        <field name="is_unique" />
                        <field name="is_required" />
                        <field name="position" />

                        <field name="group" />
                        <field name="apply_to" select="2" />
                        <field name="default_value" />
                        <field name="note" />
                        <field name="entity_type_id" />
                        <field name="options" readonly="1" />
                        <field name="field_name" />
                        <field name="based_on" />
                    </group>
                </form>
            </field>
        </record>
        <record model="ir.ui.view" id="magerp_product_attributes_tree">
            <field name="name">magerp.product_attributes.tree</field>
            <field name="model">magerp.product_attributes</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Magento Product Attributes">
                    <field name="attribute_code" select="1" />
                    <field name="frontend_label" select="1"/>
                    <field name="is_visible" select="1"/>
                    <field name="is_required" select="1"/>
                    <field name="is_searchable" select="1" />
                    <field name="is_comparable" select="1" />
                    <field name="entity_type_id" select="1" />
                    <field name="group" select="1" />
                </tree>
            </field>
        </record>
        <record id="act_magerp_product_attributes_form" model="ir.actions.act_window">
            <field name="name">Magento Product Attributes</field>
            <field name="res_model">magerp.product_attributes</field>
            <field name="src_model">magerp.product_attributes</field>
            <field name="type">ir.actions.act_window</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" ref="magerp_product_attributes_tree" />
        </record>

        <!--Magento product_attribute groups Tree/Form view  -->
        <record model="ir.ui.view" id="magerp_product_attribute_groups_form">
            <field name="name">magerp.product_attribute_groups.form</field>
            <field name="model">magerp.product_attribute_groups</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Magento Product Attributes Groups">
                    <group col="4" colspan="4">
                        <field name="attribute_group_name" />
                        <field name="attribute_set" />
                        <field name="default_id" />
                        <field name="sort_order" />
                    </group>
                </form>
            </field>
        </record>
        <record model="ir.ui.view" id="magerp_product_attribute_groups_tree">
            <field name="name">magerp.product_attribute_groups.tree</field>
            <field name="model">magerp.product_attribute_groups</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Magento Product Attribute groups">
                    <field name="attribute_group_name" select="1" />
                    <field name="attribute_set" select="2" />
                    <field name="default_id" select="2" />
                    <field name="sort_order" select="2" />
                </tree>
            </field>
        </record>
        <record id="act_magerp_product_attribute_groups_form" model="ir.actions.act_window">
            <field name="name">Magento Product Attribute Groups</field>
            <field name="res_model">magerp.product_attribute_groups</field>
            <field name="src_model">magerp.product_attribute_groups</field>
            <field name="type">ir.actions.act_window</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" ref="magerp_product_attribute_groups_tree" />
        </record>

        <!-- This is a product inherited form that will be dynamically populated-->
        <record model="ir.ui.view" id="product_product_form_view_magerp">
            <field name="name">product.normal.form_magerp</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_normal_form_view" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <data>
                    <xpath expr="/form/group/group/field[@name='ean13']" position="after">
                        <field name="magento_exported" invisible="True"/>
                    </xpath>
                    <xpath expr="/form/group/group/field[@name='variants']" position="after">
                        <field name="set" select="2" attrs="{'required':[('magento_exportable','==',True)], 'readonly': [('magento_exported', '=', True)]}"/>
                    </xpath>
                    <xpath expr="/form/group/group/field[@name='sale_ok']" position="before">
                        <button name="open_magento_fields"/>
                    </xpath>
                    <xpath expr="/form/notebook" position="before">
                        <field name="magento_exportable" select="2"/>
                    </xpath>
                </data>
            </field>
        </record>
        <record model="ir.ui.view" id="product_product_form_view_magerpdynamic">
            <field name="name">product.normal.form_magerp_dynamic</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_normal_form_view" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <xpath expr="/form/notebook" position="inside">
                    <page string="attributes_placeholder"/>
                </xpath>
            </field>
        </record>

        <!--Magento Product Product Wizard Form view-->

        <record model="ir.ui.view" id="product_product_wizard_form_view_magerpdynamic">
            <field name="name">product.normal.wizard.form_magerp_dynamic</field>
            <field name="model">product.product</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Product">
                    <group colspan='4' col='8'>
                        <separator string="Magento Information" colspan="8"/>
                        <field name="name"/>
                        <field name="set" select="2" attrs="{'required':[('magento_exportable','==',True)], 'readonly': [('magento_exported', '=', True)]}"/>
                        <field name="default_code" select="2" attrs="{'required':[('magento_exportable','==',True)]}"/>
                        <field name="product_type" select="2" attrs="{'required':[('magento_exportable','==',True)]}"/>
                        <field name="mag_manage_stock" select="2" attrs="{'required':[('magento_exportable','==',True)]}"/>
                        <field name="mag_manage_stock_shortage" select="2" attrs="{'required':[('magento_exportable','==',True)]}"/>
                        <field name="magento_exportable"/>
                        <field name="magento_exported" invisible="1" />
                    </group>
                    <separator string="attributes_placeholder" colspan="4"/>
                    <group colspan='4' col='4'>
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
                        <button icon="gtk-ok" name="save_and_close_magento_fields" string="Save and Close" type="object"/>
                    </group>
                </form>
            </field>
        </record>

        <!--Magento Product Type Tree/Form view  -->
        <record model="ir.ui.view" id="magerp_product_type_form">
            <field name="name">magerp.product_product_type.form</field>
            <field name="model">magerp.product_product_type</field>
            <field name="type">form</field>
            <field name="priority" eval="5"/>
            <field name="arch" type="xml">
            <form string="Product Type">
                <field name="product_type"/>
                <field name="name"/>
                <field name="default_type"/>
            </form>
            </field>
        </record>

        <record model="ir.ui.view" id="magerp_product_type_tree">
            <field name="name">magerp.product_product_type.tree</field>
            <field name="model">magerp.product_product_type</field>
            <field name="type">tree</field>
            <field name="priority" eval="5"/>
            <field name="arch" type="xml">
                <tree string="Product Type" editable="top">
                    <field name="name" select="1"/>
                    <field name="product_type" select="1"/>
                    <field name="default_type" select="1"/>
                </tree>
            </field>
        </record>

        <record model="ir.actions.act_window" id="act_magerp_product_type_form">
            <field name="name">Product Types</field>
            <field name="res_model">magerp.product_product_type</field>
            <field name="view_mode">tree,form</field>
        </record>



    <!--Magento product_category attribute_option Tree/Form view  -->
        <record model="ir.ui.view" id="magerp_product_category_attribute_options_form">
            <field name="name">magerp.product_category_attribute_options.form</field>
            <field name="model">magerp.product_category_attribute_options</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Magento Product Category Attribute Option">
                    <group col="4" colspan="4">
                        <field name="attribute_name" />
                        <field name="label" />
                        <field name="value" />
                    </group>
                </form>
            </field>
        </record>

        <record model="ir.ui.view" id="magerp_product_category_attribute_options_tree">
            <field name="name">magerp.product_category_attribute_options.tree</field>
            <field name="model">magerp.product_category_attribute_options</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Magento Product Category Attribute Option">
                    <field name="attribute_name" />
                    <field name="label" />
                    <field name="value" />
                </tree>
            </field>
        </record>

        <record id="act_magerp_product_category_attribute_options_form" model="ir.actions.act_window">
            <field name="name">Magento Product Category Attribute Options</field>
            <field name="res_model">magerp.product_category_attribute_options</field>
            <field name="src_model">magerp.product_category_attribute_options</field>
            <field name="type">ir.actions.act_window</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" ref="magerp_product_category_attribute_options_tree" />
        </record>

        <!--Magento attribute_option Search/Tree/Form view  -->

        <record id="magerp_product_attribute_options_search" model="ir.ui.view">
            <field name="name">magerp.product_attribute_options.search</field>
            <field name="model">magerp.product_attribute_options</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Product Attribute Options">
                    <field name="referential_id"/>
                    <field name="attribute_id"/>
                    <field name="label"/>
                    <field name="value"/>
                    <newline/>
                    <group expand="0" string="Group By..." groups="base.group_extended">
                        <filter string="Magento instance" icon="terp-personal" domain="[]" context="{'group_by':'referential_id'}"/>
                        <filter string="Attribute" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'attribute_id'}"/>
                    </group>
               </search>
            </field>
        </record>

        <record model="ir.ui.view" id="magerp_product_attribute_options_form">
            <field name="name">magerp.product_attribute_options.form</field>
            <field name="model">magerp.product_attribute_options</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Magento Product Attribute Options">
                    <group col="4" colspan="4">
                        <field name="attribute_id"/>
                        <field name="attribute_name" invisible="True" />
                        <field name="label" />
                        <field name="value" />
                        <field name="referential_id"/>
                    </group>
                </form>
            </field>
        </record>

        <record model="ir.ui.view" id="magerp_product_attribute_options_tree">
            <field name="name">magerp.product_attribute_options.tree</field>
            <field name="model">magerp.product_attribute_options</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Magento Product Attribute Options">
                      <field name="attribute_id"/>
                      <field name="attribute_name" invisible="True" />
                      <field name="label" />
                      <field name="value" />
                      <field name="ipcast"/>
                      <field name="referential_id"/>
                </tree>
            </field>
        </record>

        <record id="act_magerp_product_attribute_options_form" model="ir.actions.act_window">
            <field name="name">Magento Product Attribute Options</field>
            <field name="res_model">magerp.product_attribute_options</field>
            <field name="type">ir.actions.act_window</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" ref="magerp_product_attribute_options_tree" />
            <field name="search_view_id" ref="magerp_product_attribute_options_search"/>
        </record>

    </data>
</openerp>