1
1
<?xml version="1.0" encoding="utf-8"?>
4
<!--Magento Product Category Tree/Form view -->
4
<!--Magento Product Category Tree/Form view -->
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" />
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" />
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" />
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" />
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" />
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" />
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" />
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"/>
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')]"/>
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" />
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" />
100
<separator string="Attributes in Set" colspan="4" />
101
<field name="attributes" nolabel="1" readonly="1" />
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" />
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" />
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"/>
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" />
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" />
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" />
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" />
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" />
100
<separator string="Attributes in Set" colspan="4" />
101
<field name="attributes" nolabel="1" readonly="1" />
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" />
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" />
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"/>
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" />
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" />
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" />
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" />
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" />
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" />
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" />
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" />
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">
242
<xpath expr="/form/group/group/field[@name='ean13']" position="after">
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" />
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" />
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" />
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" />
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" />
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">
242
<xpath expr="/form/group/group/field[@name='ean13']" position="after">
243
243
<field name="magento_exported" invisible="True"/>
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)]}"/>
248
<xpath expr="/form/group/group/field[@name='sale_ok']" position="before">
249
<button name="open_magento_fields"/>
251
<xpath expr="/form/notebook" position="before">
252
<field name="magento_exportable" select="2"/>
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"/>
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)]}"/>
248
<xpath expr="/form/group/group/field[@name='sale_ok']" position="before">
249
<button name="open_magento_fields"/>
251
<xpath expr="/form/notebook" position="before">
252
<field name="magento_exportable" select="2"/>
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"/>
269
269
<!--Magento Product Product Wizard Form view-->