forked from OCA/product-attribute
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproduct_view.xml
53 lines (47 loc) · 1.74 KB
/
product_view.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="product_template_form_view" model="ir.ui.view">
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//h1" position="after">
<group>
<field name="profile_id" widget="selection"/>
</group>
</xpath>
<field name="type" position="after">
<field name="profile_explanation"/>
</field>
</field>
</record>
<record id="product_template_search_view" model="ir.ui.view">
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view"/>
<field name="arch" type="xml">
<xpath expr="//group/filter[@string='Category']" position="before">
<filter string='Profile' domain="[]" context="{'group_by' : 'profile_id'}"/>
</xpath>
</field>
</record>
<record id="product_profile_tree_view" model="ir.ui.view">
<field name="model">product.profile</field>
<field name="arch" type="xml">
<tree string="Product Profiles">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="type"/>
<field name="explanation"/>
</tree>
</field>
</record>
<record id="product_profile_action" model="ir.actions.act_window">
<field name="name">Product Profiles</field>
<field name="res_model">product.profile</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="menu_product_profile_action"
action="product_profile_action"
parent="product.prod_config_main" sequence="10" />
</data>
</openerp>