forked from OCA/e-commerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
product_links_view.xml
71 lines (67 loc) · 2.83 KB
/
product_links_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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="product_link_form">
<field name="name">product.link.form</field>
<field name="model">product.link</field>
<field name="arch" type="xml">
<form string="Product Links">
<group>
<field name="product_id"
select="1"/>
<field name="is_active" select="1" />
<field name="linked_product_id" select="1" />
<field name="type" select="1" />
</group>
</form>
</field>
</record>
<record model="ir.ui.view" id="product_link_tree">
<field name="name">product.link.tree</field>
<field name="model">product.link</field>
<field name="arch" type="xml">
<tree string="Product Links">
<field name="product_id"/>
<field name="is_active" />
<field name="linked_product_id" />
<field name="type" />
</tree>
</field>
</record>
<record model="ir.ui.view" id="product_product_link_form">
<field name="name">product.normal.form.custom.link</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Product Links">
<field name="product_link_ids" colspan="4" nolabel="1">
<tree>
<field name="is_active"/>
<field name="linked_product_id"/>
<field name="type"/>
</tree>
<form>
<group>
<field name="is_active"/>
<field name="linked_product_id"/>
<field name="type"/>
</group>
</form>
</field>
</page>
</notebook>
</field>
</record>
<record id="product_link_action" model="ir.actions.act_window">
<field name="name">Product Links</field>
<field name="res_model">product.link</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="product_link_menu"
parent="base.menu_product"
action="product_link_action"
sequence="100"/>
</data>
</openerp>