~sebastien.beau/magentoerpconnect/oerp6.1-stable-minor-improvement

« back to all changes in this revision

Viewing changes to magentoerpconnect/product_view.xml

  • Committer: Akretion Bot
  • Date: 2012-10-08 15:55:39 UTC
  • mto: This revision was merged to the branch mainline in revision 678.
  • Revision ID: code.bot@akretion.com-20121008155539-bah8rd4o81s2bbue
[REF] refactor code replace TAB per 4 SPACE and remove useless space at end of line

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
 
                <!--Magento Product Category Tree/Form view  -->
 
3
    <data>
 
4
        <!--Magento Product Category Tree/Form view  -->
5
5
 
6
 
                <record model="ir.ui.view" id="product_category_form_view_magerp2">
7
 
                        <field name="name">product.category.form_view_magerp2</field>
8
 
                        <field name="model">product.category</field>
9
 
                        <field name="inherit_id" ref="product.product_category_form_view" />
10
 
                        <field name="type">form</field>
11
 
                        <field name="arch" type="xml">
12
 
                                <xpath expr="/form/field[@name='sequence']" position="after">
13
 
                                        <group colspan="4" col="4" attrs="{'invisible':[('magento_exportable','!=',1)],'readonly':[('level','=',0)]}">
14
 
                                                <separator string="Magento Information" colspan="4" />
15
 
                                                <notebook attrs="{'invisible':[('magento_exportable','!=',1)]}" colspan="4">
16
 
                                                        <page string="General Information">
17
 
                                                                <group cols="2" colspan="4">
18
 
                                                                        <group col="2" colspan="1">
19
 
                                                                                <separator string="Meta Information" colspan="2" />
20
 
                                                                                <field name="meta_title" colspan="2" />
21
 
                                                                                <field name="meta_keywords" colspan="2" />
22
 
                                                                                <field name="meta_description" colspan="2" />
23
 
                                                                                <field name="url_key" colspan="2" />
24
 
                                                                                <field name="level" colspan="2" />
 
6
        <record model="ir.ui.view" id="product_category_form_view_magerp2">
 
7
            <field name="name">product.category.form_view_magerp2</field>
 
8
            <field name="model">product.category</field>
 
9
            <field name="inherit_id" ref="product.product_category_form_view" />
 
10
            <field name="type">form</field>
 
11
            <field name="arch" type="xml">
 
12
                <xpath expr="/form/field[@name='sequence']" position="after">
 
13
                    <group colspan="4" col="4" attrs="{'invisible':[('magento_exportable','!=',1)],'readonly':[('level','=',0)]}">
 
14
                        <separator string="Magento Information" colspan="4" />
 
15
                        <notebook attrs="{'invisible':[('magento_exportable','!=',1)]}" colspan="4">
 
16
                            <page string="General Information">
 
17
                                <group cols="2" colspan="4">
 
18
                                    <group col="2" colspan="1">
 
19
                                        <separator string="Meta Information" colspan="2" />
 
20
                                        <field name="meta_title" colspan="2" />
 
21
                                        <field name="meta_keywords" colspan="2" />
 
22
                                        <field name="meta_description" colspan="2" />
 
23
                                        <field name="url_key" colspan="2" />
 
24
                                        <field name="level" colspan="2" />
25
25
                                        <field name="include_in_menu" colspan="2" />
26
 
                                                                        </group>
27
 
                                                                        <group col="1" colspan="1">
28
 
                                                                                <separator string="Category Image" />
29
 
                                                                                <field name="image" nolabel="1" widget="image" />
30
 
                                                                                <field name="image_name" colspan="1" nolabel="1" />
31
 
                                                                                <separator string="Description" />
32
 
                                                                                <field name="description" colspan="1" nolabel="1" />
33
 
                                                                                <group col="4" colspan="1">
34
 
                                                                                        <field name="is_active" colspan="1" />
35
 
                                                                                        <field name="magento_parent_id" />
36
 
                                                                                </group>
37
 
                                                                        </group>
38
 
                                                                </group>
 
26
                                    </group>
 
27
                                    <group col="1" colspan="1">
 
28
                                        <separator string="Category Image" />
 
29
                                        <field name="image" nolabel="1" widget="image" />
 
30
                                        <field name="image_name" colspan="1" nolabel="1" />
 
31
                                        <separator string="Description" />
 
32
                                        <field name="description" colspan="1" nolabel="1" />
 
33
                                        <group col="4" colspan="1">
 
34
                                            <field name="is_active" colspan="1" />
 
35
                                            <field name="magento_parent_id" />
 
36
                                        </group>
 
37
                                    </group>
 
38
                                </group>
39
39
 
40
 
                                                        </page>
41
 
                                                        <page string="Display Settings">
42
 
                                                                <group col="4" colspan="4">
43
 
                                                                        <separator string="Display Mode" colspan="4" />
44
 
                                                                        <field name="display_mode" colspan="1" nolabel="1" />
45
 
                                                                        <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" />
46
 
                                                                </group>
47
 
                                                                <separator string="Use Anchor" colspan="4" />
48
 
                                                                <group col="4" colspan="4">
49
 
                                                                        <field name="is_anchor" colspan="1" />
50
 
                                                                        <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" />
51
 
                                                                </group>
 
40
                            </page>
 
41
                            <page string="Display Settings">
 
42
                                <group col="4" colspan="4">
 
43
                                    <separator string="Display Mode" colspan="4" />
 
44
                                    <field name="display_mode" colspan="1" nolabel="1" />
 
45
                                    <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" />
 
46
                                </group>
 
47
                                <separator string="Use Anchor" colspan="4" />
 
48
                                <group col="4" colspan="4">
 
49
                                    <field name="is_anchor" colspan="1" />
 
50
                                    <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" />
 
51
                                </group>
52
52
                                <group col="4" colspan="4">
53
53
                                    <group col="10" colspan="2">
54
 
                                                                        <separator string="Available Sorting method" colspan="10" />
 
54
                                        <separator string="Available Sorting method" colspan="10" />
55
55
                                        <field name="use_default_available_sort_by" string="Use Default Config"/>
56
 
                                                                        <field name="available_sort_by" colspan="10" nolabel="1" attrs="{'readonly':[('use_default_available_sort_by','=',True)],'required':[('use_default_available_sort_by','=',False)]}">
 
56
                                        <field name="available_sort_by" colspan="10" nolabel="1" attrs="{'readonly':[('use_default_available_sort_by','=',True)],'required':[('use_default_available_sort_by','=',False)]}">
57
57
                                            <tree string="Available Sort By">
58
58
                                                <field name="label"/>
59
59
                                            </tree>
60
60
                                        </field>
61
 
                                                                    </group>
 
61
                                    </group>
62
62
                                    <group col="2" colspan="2">
63
 
                                                                        <separator string="Default Sorting method" colspan="2" />
64
 
                                                                        <field name="default_sort_by" widget="selection" nolabel="1" domain="[('attribute_name', '=', 'sort_by')]"/>
65
 
                                                                        <separator string="Page Layout" colspan="2" />
66
 
                                                                        <field name="page_layout" nolabel="1" widget="selection" domain="[('attribute_name', '=', 'page_layout')]"/>
 
63
                                        <separator string="Default Sorting method" colspan="2" />
 
64
                                        <field name="default_sort_by" widget="selection" nolabel="1" domain="[('attribute_name', '=', 'sort_by')]"/>
 
65
                                        <separator string="Page Layout" colspan="2" />
 
66
                                        <field name="page_layout" nolabel="1" widget="selection" domain="[('attribute_name', '=', 'page_layout')]"/>
67
67
                                    </group>
68
68
                                </group>
69
 
                                                        </page>
70
 
                                                </notebook>
71
 
                                        </group>
72
 
                                </xpath>
73
 
                        </field>
74
 
                </record>
75
 
 
76
 
                <record model="ir.ui.view" id="product_category_form_view_magerp">
77
 
                        <field name="name">product.category.form_view_magerp</field>
78
 
                        <field name="model">product.category</field>
79
 
                        <field name="inherit_id" ref="product.product_category_form_view" />
80
 
                        <field name="type">form</field>
81
 
                        <field name="arch" type="xml">
82
 
                                <field name="sequence" position="after">
83
 
                                        <field name="magento_exportable" />
84
 
                                </field>
85
 
                        </field>
86
 
                </record>
87
 
 
88
 
                <!--Magento product_attribute_set Tree/Form view  -->
89
 
                <record model="ir.ui.view" id="magerp_product_attribute_set_form">
90
 
                        <field name="name">magerp.product_attribute_set.form</field>
91
 
                        <field name="model">magerp.product_attribute_set</field>
92
 
                        <field name="type">form</field>
93
 
                        <field name="arch" type="xml">
94
 
                                <form string="Magento Product Attribute Sets">
95
 
                                        <group col="4" colspan="4">
96
 
                                                <field name="sort_order" readonly="1" />
97
 
                                                <field name="attribute_set_name" readonly="1" />
98
 
                                                <button name="update_attribute" string="Update Attributes" colspan="2" type="object" />
99
 
                                        </group>
100
 
                                        <separator string="Attributes in Set" colspan="4" />
101
 
                                        <field name="attributes" nolabel="1" readonly="1" />
102
 
                                </form>
103
 
                        </field>
104
 
                </record>
105
 
                <record model="ir.ui.view" id="magerp_product_attribute_set_tree">
106
 
                        <field name="name">magerp.product_attribute_set.tree</field>
107
 
                        <field name="model">magerp.product_attribute_set</field>
108
 
                        <field name="type">tree</field>
109
 
                        <field name="arch" type="xml">
110
 
                                <tree string="Magento Product Attribute Set">
111
 
                                        <field name="sort_order" select="2" />
112
 
                                        <field name="attribute_set_name" select="1" />
113
 
                                </tree>
114
 
                        </field>
115
 
                </record>
116
 
                <record id="act_magerp_product_attribute_set_form" model="ir.actions.act_window">
117
 
                        <field name="name">Magento Product Attribute Sets</field>
118
 
                        <field name="res_model">magerp.product_attribute_set</field>
119
 
                        <field name="src_model">magerp.product_attribute_set</field>
120
 
                        <field name="type">ir.actions.act_window</field>
121
 
                        <field name="view_type">form</field>
122
 
                        <field name="view_mode">tree,form</field>
123
 
                        <field name="view_id" ref="magerp_product_attribute_set_tree" />
124
 
                </record>
125
 
 
126
 
                <!--Magento product_attributes Tree/Form view  -->
127
 
                <record model="ir.ui.view" id="magerp_product_attributes_form">
128
 
                        <field name="name">magerp.product_attributes.form</field>
129
 
                        <field name="model">magerp.product_attributes</field>
130
 
                        <field name="type">form</field>
131
 
                        <field name="arch" type="xml">
132
 
                                <form string="Magento Product Attributes">
133
 
                                        <group col="4" colspan="4">
134
 
                                                <field name="attribute_code" />
135
 
                                                <field name="frontend_input" select="2" />
136
 
                                                <field name="frontend_class" />
137
 
                                                <field name="backend_model" />
138
 
                                                <field name="backend_type" select="2" />
139
 
                                                <field name="frontend_label"/>
140
 
 
141
 
                                                <field name="is_visible_in_advanced_search" select="2" />
142
 
                                                <field name="is_global" />
143
 
                                                <field name="is_filterable" />
144
 
                                                <field name="is_comparable" />
145
 
                                                <field name="is_visible" />
146
 
                                                <field name="is_searchable" />
147
 
                                                <field name="is_user_defined" />
148
 
                                                <field name="is_configurable" />
149
 
 
150
 
                                                <field name="is_visible_on_front" />
151
 
                                                <field name="is_used_for_price_rules" />
152
 
                                                <field name="is_unique" />
153
 
                                                <field name="is_required" />
154
 
                                                <field name="position" />
155
 
 
156
 
                                                <field name="group" />
157
 
                                                <field name="apply_to" select="2" />
158
 
                                                <field name="default_value" />
159
 
                                                <field name="note" />
160
 
                                                <field name="entity_type_id" />
161
 
                                                <field name="options" readonly="1" />
 
69
                            </page>
 
70
                        </notebook>
 
71
                    </group>
 
72
                </xpath>
 
73
            </field>
 
74
        </record>
 
75
 
 
76
        <record model="ir.ui.view" id="product_category_form_view_magerp">
 
77
            <field name="name">product.category.form_view_magerp</field>
 
78
            <field name="model">product.category</field>
 
79
            <field name="inherit_id" ref="product.product_category_form_view" />
 
80
            <field name="type">form</field>
 
81
            <field name="arch" type="xml">
 
82
                <field name="sequence" position="after">
 
83
                    <field name="magento_exportable" />
 
84
                </field>
 
85
            </field>
 
86
        </record>
 
87
 
 
88
        <!--Magento product_attribute_set Tree/Form view  -->
 
89
        <record model="ir.ui.view" id="magerp_product_attribute_set_form">
 
90
            <field name="name">magerp.product_attribute_set.form</field>
 
91
            <field name="model">magerp.product_attribute_set</field>
 
92
            <field name="type">form</field>
 
93
            <field name="arch" type="xml">
 
94
                <form string="Magento Product Attribute Sets">
 
95
                    <group col="4" colspan="4">
 
96
                        <field name="sort_order" readonly="1" />
 
97
                        <field name="attribute_set_name" readonly="1" />
 
98
                        <button name="update_attribute" string="Update Attributes" colspan="2" type="object" />
 
99
                    </group>
 
100
                    <separator string="Attributes in Set" colspan="4" />
 
101
                    <field name="attributes" nolabel="1" readonly="1" />
 
102
                </form>
 
103
            </field>
 
104
        </record>
 
105
        <record model="ir.ui.view" id="magerp_product_attribute_set_tree">
 
106
            <field name="name">magerp.product_attribute_set.tree</field>
 
107
            <field name="model">magerp.product_attribute_set</field>
 
108
            <field name="type">tree</field>
 
109
            <field name="arch" type="xml">
 
110
                <tree string="Magento Product Attribute Set">
 
111
                    <field name="sort_order" select="2" />
 
112
                    <field name="attribute_set_name" select="1" />
 
113
                </tree>
 
114
            </field>
 
115
        </record>
 
116
        <record id="act_magerp_product_attribute_set_form" model="ir.actions.act_window">
 
117
            <field name="name">Magento Product Attribute Sets</field>
 
118
            <field name="res_model">magerp.product_attribute_set</field>
 
119
            <field name="src_model">magerp.product_attribute_set</field>
 
120
            <field name="type">ir.actions.act_window</field>
 
121
            <field name="view_type">form</field>
 
122
            <field name="view_mode">tree,form</field>
 
123
            <field name="view_id" ref="magerp_product_attribute_set_tree" />
 
124
        </record>
 
125
 
 
126
        <!--Magento product_attributes Tree/Form view  -->
 
127
        <record model="ir.ui.view" id="magerp_product_attributes_form">
 
128
            <field name="name">magerp.product_attributes.form</field>
 
129
            <field name="model">magerp.product_attributes</field>
 
130
            <field name="type">form</field>
 
131
            <field name="arch" type="xml">
 
132
                <form string="Magento Product Attributes">
 
133
                    <group col="4" colspan="4">
 
134
                        <field name="attribute_code" />
 
135
                        <field name="frontend_input" select="2" />
 
136
                        <field name="frontend_class" />
 
137
                        <field name="backend_model" />
 
138
                        <field name="backend_type" select="2" />
 
139
                        <field name="frontend_label"/>
 
140
 
 
141
                        <field name="is_visible_in_advanced_search" select="2" />
 
142
                        <field name="is_global" />
 
143
                        <field name="is_filterable" />
 
144
                        <field name="is_comparable" />
 
145
                        <field name="is_visible" />
 
146
                        <field name="is_searchable" />
 
147
                        <field name="is_user_defined" />
 
148
                        <field name="is_configurable" />
 
149
 
 
150
                        <field name="is_visible_on_front" />
 
151
                        <field name="is_used_for_price_rules" />
 
152
                        <field name="is_unique" />
 
153
                        <field name="is_required" />
 
154
                        <field name="position" />
 
155
 
 
156
                        <field name="group" />
 
157
                        <field name="apply_to" select="2" />
 
158
                        <field name="default_value" />
 
159
                        <field name="note" />
 
160
                        <field name="entity_type_id" />
 
161
                        <field name="options" readonly="1" />
162
162
                        <field name="field_name" />
163
163
                        <field name="based_on" />
164
 
                                        </group>
165
 
                                </form>
166
 
                        </field>
167
 
                </record>
168
 
                <record model="ir.ui.view" id="magerp_product_attributes_tree">
169
 
                        <field name="name">magerp.product_attributes.tree</field>
170
 
                        <field name="model">magerp.product_attributes</field>
171
 
                        <field name="type">tree</field>
172
 
                        <field name="arch" type="xml">
173
 
                                <tree string="Magento Product Attributes">
174
 
                                        <field name="attribute_code" select="1" />
175
 
                                        <field name="frontend_label" select="1"/>
176
 
                                        <field name="is_visible" select="1"/>
177
 
                                        <field name="is_required" select="1"/>
178
 
                                        <field name="is_searchable" select="1" />
179
 
                                        <field name="is_comparable" select="1" />
180
 
                                        <field name="entity_type_id" select="1" />
181
 
                                        <field name="group" select="1" />
182
 
                                </tree>
183
 
                        </field>
184
 
                </record>
185
 
                <record id="act_magerp_product_attributes_form" model="ir.actions.act_window">
186
 
                        <field name="name">Magento Product Attributes</field>
187
 
                        <field name="res_model">magerp.product_attributes</field>
188
 
                        <field name="src_model">magerp.product_attributes</field>
189
 
                        <field name="type">ir.actions.act_window</field>
190
 
                        <field name="view_type">form</field>
191
 
                        <field name="view_mode">tree,form</field>
192
 
                        <field name="view_id" ref="magerp_product_attributes_tree" />
193
 
                </record>
194
 
 
195
 
                <!--Magento product_attribute groups Tree/Form view  -->
196
 
                <record model="ir.ui.view" id="magerp_product_attribute_groups_form">
197
 
                        <field name="name">magerp.product_attribute_groups.form</field>
198
 
                        <field name="model">magerp.product_attribute_groups</field>
199
 
                        <field name="type">form</field>
200
 
                        <field name="arch" type="xml">
201
 
                                <form string="Magento Product Attributes Groups">
202
 
                                        <group col="4" colspan="4">
203
 
                                                <field name="attribute_group_name" />
204
 
                                                <field name="attribute_set" />
205
 
                                                <field name="default_id" />
206
 
                                                <field name="sort_order" />
207
 
                                        </group>
208
 
                                </form>
209
 
                        </field>
210
 
                </record>
211
 
                <record model="ir.ui.view" id="magerp_product_attribute_groups_tree">
212
 
                        <field name="name">magerp.product_attribute_groups.tree</field>
213
 
                        <field name="model">magerp.product_attribute_groups</field>
214
 
                        <field name="type">tree</field>
215
 
                        <field name="arch" type="xml">
216
 
                                <tree string="Magento Product Attribute groups">
217
 
                                        <field name="attribute_group_name" select="1" />
218
 
                                        <field name="attribute_set" select="2" />
219
 
                                        <field name="default_id" select="2" />
220
 
                                        <field name="sort_order" select="2" />
221
 
                                </tree>
222
 
                        </field>
223
 
                </record>
224
 
                <record id="act_magerp_product_attribute_groups_form" model="ir.actions.act_window">
225
 
                        <field name="name">Magento Product Attribute Groups</field>
226
 
                        <field name="res_model">magerp.product_attribute_groups</field>
227
 
                        <field name="src_model">magerp.product_attribute_groups</field>
228
 
                        <field name="type">ir.actions.act_window</field>
229
 
                        <field name="view_type">form</field>
230
 
                        <field name="view_mode">tree,form</field>
231
 
                        <field name="view_id" ref="magerp_product_attribute_groups_tree" />
232
 
                </record>
233
 
 
234
 
                <!-- This is a product inherited form that will be dynamically populated-->
235
 
                <record model="ir.ui.view" id="product_product_form_view_magerp">
236
 
                        <field name="name">product.normal.form_magerp</field>
237
 
                        <field name="model">product.product</field>
238
 
                        <field name="inherit_id" ref="product.product_normal_form_view" />
239
 
                        <field name="type">form</field>
240
 
                        <field name="arch" type="xml">
241
 
                                <data>
242
 
                                        <xpath expr="/form/group/group/field[@name='ean13']" position="after">
 
164
                    </group>
 
165
                </form>
 
166
            </field>
 
167
        </record>
 
168
        <record model="ir.ui.view" id="magerp_product_attributes_tree">
 
169
            <field name="name">magerp.product_attributes.tree</field>
 
170
            <field name="model">magerp.product_attributes</field>
 
171
            <field name="type">tree</field>
 
172
            <field name="arch" type="xml">
 
173
                <tree string="Magento Product Attributes">
 
174
                    <field name="attribute_code" select="1" />
 
175
                    <field name="frontend_label" select="1"/>
 
176
                    <field name="is_visible" select="1"/>
 
177
                    <field name="is_required" select="1"/>
 
178
                    <field name="is_searchable" select="1" />
 
179
                    <field name="is_comparable" select="1" />
 
180
                    <field name="entity_type_id" select="1" />
 
181
                    <field name="group" select="1" />
 
182
                </tree>
 
183
            </field>
 
184
        </record>
 
185
        <record id="act_magerp_product_attributes_form" model="ir.actions.act_window">
 
186
            <field name="name">Magento Product Attributes</field>
 
187
            <field name="res_model">magerp.product_attributes</field>
 
188
            <field name="src_model">magerp.product_attributes</field>
 
189
            <field name="type">ir.actions.act_window</field>
 
190
            <field name="view_type">form</field>
 
191
            <field name="view_mode">tree,form</field>
 
192
            <field name="view_id" ref="magerp_product_attributes_tree" />
 
193
        </record>
 
194
 
 
195
        <!--Magento product_attribute groups Tree/Form view  -->
 
196
        <record model="ir.ui.view" id="magerp_product_attribute_groups_form">
 
197
            <field name="name">magerp.product_attribute_groups.form</field>
 
198
            <field name="model">magerp.product_attribute_groups</field>
 
199
            <field name="type">form</field>
 
200
            <field name="arch" type="xml">
 
201
                <form string="Magento Product Attributes Groups">
 
202
                    <group col="4" colspan="4">
 
203
                        <field name="attribute_group_name" />
 
204
                        <field name="attribute_set" />
 
205
                        <field name="default_id" />
 
206
                        <field name="sort_order" />
 
207
                    </group>
 
208
                </form>
 
209
            </field>
 
210
        </record>
 
211
        <record model="ir.ui.view" id="magerp_product_attribute_groups_tree">
 
212
            <field name="name">magerp.product_attribute_groups.tree</field>
 
213
            <field name="model">magerp.product_attribute_groups</field>
 
214
            <field name="type">tree</field>
 
215
            <field name="arch" type="xml">
 
216
                <tree string="Magento Product Attribute groups">
 
217
                    <field name="attribute_group_name" select="1" />
 
218
                    <field name="attribute_set" select="2" />
 
219
                    <field name="default_id" select="2" />
 
220
                    <field name="sort_order" select="2" />
 
221
                </tree>
 
222
            </field>
 
223
        </record>
 
224
        <record id="act_magerp_product_attribute_groups_form" model="ir.actions.act_window">
 
225
            <field name="name">Magento Product Attribute Groups</field>
 
226
            <field name="res_model">magerp.product_attribute_groups</field>
 
227
            <field name="src_model">magerp.product_attribute_groups</field>
 
228
            <field name="type">ir.actions.act_window</field>
 
229
            <field name="view_type">form</field>
 
230
            <field name="view_mode">tree,form</field>
 
231
            <field name="view_id" ref="magerp_product_attribute_groups_tree" />
 
232
        </record>
 
233
 
 
234
        <!-- This is a product inherited form that will be dynamically populated-->
 
235
        <record model="ir.ui.view" id="product_product_form_view_magerp">
 
236
            <field name="name">product.normal.form_magerp</field>
 
237
            <field name="model">product.product</field>
 
238
            <field name="inherit_id" ref="product.product_normal_form_view" />
 
239
            <field name="type">form</field>
 
240
            <field name="arch" type="xml">
 
241
                <data>
 
242
                    <xpath expr="/form/group/group/field[@name='ean13']" position="after">
243
243
                        <field name="magento_exported" invisible="True"/>
244
 
                                        </xpath>
245
 
                                        <xpath expr="/form/group/group/field[@name='variants']" position="after">
246
 
                                                <field name="set" select="2" attrs="{'required':[('magento_exportable','==',True)], 'readonly': [('magento_exported', '=', True)]}"/>
247
 
                                        </xpath>
248
 
                                        <xpath expr="/form/group/group/field[@name='sale_ok']" position="before">
249
 
                                                <button name="open_magento_fields"/>
250
 
                                        </xpath>
251
 
                                        <xpath expr="/form/notebook" position="before">
252
 
                                                <field name="magento_exportable" select="2"/>
253
 
                                        </xpath>
254
 
                                </data>
255
 
                        </field>
256
 
                </record>
257
 
                <record model="ir.ui.view" id="product_product_form_view_magerpdynamic">
258
 
                        <field name="name">product.normal.form_magerp_dynamic</field>
259
 
                        <field name="model">product.product</field>
260
 
                        <field name="inherit_id" ref="product.product_normal_form_view" />
261
 
                        <field name="type">form</field>
262
 
                        <field name="arch" type="xml">
263
 
                                <xpath expr="/form/notebook" position="inside">
264
 
                                        <page string="attributes_placeholder"/>
265
 
                                </xpath>
266
 
                        </field>
267
 
                </record>
 
244
                    </xpath>
 
245
                    <xpath expr="/form/group/group/field[@name='variants']" position="after">
 
246
                        <field name="set" select="2" attrs="{'required':[('magento_exportable','==',True)], 'readonly': [('magento_exported', '=', True)]}"/>
 
247
                    </xpath>
 
248
                    <xpath expr="/form/group/group/field[@name='sale_ok']" position="before">
 
249
                        <button name="open_magento_fields"/>
 
250
                    </xpath>
 
251
                    <xpath expr="/form/notebook" position="before">
 
252
                        <field name="magento_exportable" select="2"/>
 
253
                    </xpath>
 
254
                </data>
 
255
            </field>
 
256
        </record>
 
257
        <record model="ir.ui.view" id="product_product_form_view_magerpdynamic">
 
258
            <field name="name">product.normal.form_magerp_dynamic</field>
 
259
            <field name="model">product.product</field>
 
260
            <field name="inherit_id" ref="product.product_normal_form_view" />
 
261
            <field name="type">form</field>
 
262
            <field name="arch" type="xml">
 
263
                <xpath expr="/form/notebook" position="inside">
 
264
                    <page string="attributes_placeholder"/>
 
265
                </xpath>
 
266
            </field>
 
267
        </record>
268
268
 
269
269
        <!--Magento Product Product Wizard Form view-->
270
270
 
293
293
            </field>
294
294
        </record>
295
295
 
296
 
                <!--Magento Product Type Tree/Form view  -->
297
 
            <record model="ir.ui.view" id="magerp_product_type_form">
298
 
                    <field name="name">magerp.product_product_type.form</field>
299
 
                    <field name="model">magerp.product_product_type</field>
300
 
                    <field name="type">form</field>
301
 
                    <field name="priority" eval="5"/>
302
 
                    <field name="arch" type="xml">
303
 
                    <form string="Product Type">
 
296
        <!--Magento Product Type Tree/Form view  -->
 
297
        <record model="ir.ui.view" id="magerp_product_type_form">
 
298
            <field name="name">magerp.product_product_type.form</field>
 
299
            <field name="model">magerp.product_product_type</field>
 
300
            <field name="type">form</field>
 
301
            <field name="priority" eval="5"/>
 
302
            <field name="arch" type="xml">
 
303
            <form string="Product Type">
304
304
                <field name="product_type"/>
305
305
                <field name="name"/>
306
306
                <field name="default_type"/>
307
 
                    </form>
308
 
                    </field>
309
 
            </record>
310
 
        
311
 
            <record model="ir.ui.view" id="magerp_product_type_tree">
312
 
                    <field name="name">magerp.product_product_type.tree</field>
313
 
                    <field name="model">magerp.product_product_type</field>
314
 
                    <field name="type">tree</field>
315
 
                    <field name="priority" eval="5"/>
316
 
                    <field name="arch" type="xml">
317
 
                            <tree string="Product Type" editable="top">
318
 
                                    <field name="name" select="1"/>
319
 
                                    <field name="product_type" select="1"/>
 
307
            </form>
 
308
            </field>
 
309
        </record>
 
310
 
 
311
        <record model="ir.ui.view" id="magerp_product_type_tree">
 
312
            <field name="name">magerp.product_product_type.tree</field>
 
313
            <field name="model">magerp.product_product_type</field>
 
314
            <field name="type">tree</field>
 
315
            <field name="priority" eval="5"/>
 
316
            <field name="arch" type="xml">
 
317
                <tree string="Product Type" editable="top">
 
318
                    <field name="name" select="1"/>
 
319
                    <field name="product_type" select="1"/>
320
320
                    <field name="default_type" select="1"/>
321
 
                            </tree>
322
 
                    </field>
323
 
            </record>
 
321
                </tree>
 
322
            </field>
 
323
        </record>
324
324
 
325
325
        <record model="ir.actions.act_window" id="act_magerp_product_type_form">
326
326
            <field name="name">Product Types</field>
331
331
 
332
332
 
333
333
    <!--Magento product_category attribute_option Tree/Form view  -->
334
 
                <record model="ir.ui.view" id="magerp_product_category_attribute_options_form">
335
 
                        <field name="name">magerp.product_category_attribute_options.form</field>
336
 
                        <field name="model">magerp.product_category_attribute_options</field>
337
 
                        <field name="type">form</field>
338
 
                        <field name="arch" type="xml">
339
 
                                <form string="Magento Product Category Attribute Option">
340
 
                                        <group col="4" colspan="4">
341
 
                                                <field name="attribute_name" />
342
 
                                                <field name="label" />
343
 
                                                <field name="value" />
344
 
                                        </group>
345
 
                                </form>
346
 
                        </field>
347
 
                </record>
348
 
 
349
 
                <record model="ir.ui.view" id="magerp_product_category_attribute_options_tree">
350
 
                        <field name="name">magerp.product_category_attribute_options.tree</field>
351
 
                        <field name="model">magerp.product_category_attribute_options</field>
352
 
                        <field name="type">tree</field>
353
 
                        <field name="arch" type="xml">
354
 
                                <tree string="Magento Product Category Attribute Option">
355
 
                                        <field name="attribute_name" />
356
 
                                        <field name="label" />
357
 
                                        <field name="value" />
358
 
                                </tree>
359
 
                        </field>
360
 
                </record>
361
 
 
362
 
                <record id="act_magerp_product_category_attribute_options_form" model="ir.actions.act_window">
363
 
                        <field name="name">Magento Product Category Attribute Options</field>
364
 
                        <field name="res_model">magerp.product_category_attribute_options</field>
 
334
        <record model="ir.ui.view" id="magerp_product_category_attribute_options_form">
 
335
            <field name="name">magerp.product_category_attribute_options.form</field>
 
336
            <field name="model">magerp.product_category_attribute_options</field>
 
337
            <field name="type">form</field>
 
338
            <field name="arch" type="xml">
 
339
                <form string="Magento Product Category Attribute Option">
 
340
                    <group col="4" colspan="4">
 
341
                        <field name="attribute_name" />
 
342
                        <field name="label" />
 
343
                        <field name="value" />
 
344
                    </group>
 
345
                </form>
 
346
            </field>
 
347
        </record>
 
348
 
 
349
        <record model="ir.ui.view" id="magerp_product_category_attribute_options_tree">
 
350
            <field name="name">magerp.product_category_attribute_options.tree</field>
 
351
            <field name="model">magerp.product_category_attribute_options</field>
 
352
            <field name="type">tree</field>
 
353
            <field name="arch" type="xml">
 
354
                <tree string="Magento Product Category Attribute Option">
 
355
                    <field name="attribute_name" />
 
356
                    <field name="label" />
 
357
                    <field name="value" />
 
358
                </tree>
 
359
            </field>
 
360
        </record>
 
361
 
 
362
        <record id="act_magerp_product_category_attribute_options_form" model="ir.actions.act_window">
 
363
            <field name="name">Magento Product Category Attribute Options</field>
 
364
            <field name="res_model">magerp.product_category_attribute_options</field>
365
365
            <field name="src_model">magerp.product_category_attribute_options</field>
366
 
                        <field name="type">ir.actions.act_window</field>
367
 
                        <field name="view_type">form</field>
368
 
                        <field name="view_mode">tree,form</field>
369
 
                        <field name="view_id" ref="magerp_product_category_attribute_options_tree" />
370
 
                </record>
 
366
            <field name="type">ir.actions.act_window</field>
 
367
            <field name="view_type">form</field>
 
368
            <field name="view_mode">tree,form</field>
 
369
            <field name="view_id" ref="magerp_product_category_attribute_options_tree" />
 
370
        </record>
371
371
 
372
372
        <!--Magento attribute_option Search/Tree/Form view  -->
373
373
 
433
433
            <field name="search_view_id" ref="magerp_product_attribute_options_search"/>
434
434
        </record>
435
435
 
436
 
        </data>
 
436
    </data>
437
437
</openerp>