forked from OCA/product-attribute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
product_series_view.xml
executable file
·58 lines (50 loc) · 2.05 KB
/
product_series_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Product Series Form And Tree View -->
<record id="product_series_form_view" model="ir.ui.view">
<field name="name">product.series.form</field>
<field name="model">product.series</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Product series">
<field name="code"/>
<field name="name"/>
<field name="partner_id"/>
<field name="description"/>
</form>
</field>
</record>
<record id="product_series_tree_view" model="ir.ui.view">
<field name="name">product.series.tree</field>
<field name="model">product.series</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Product Series">
<field name="code" select="1"/>
<field name="name" select="1"/>
</tree>
</field>
</record>
<record id="product_series_action_form" model="ir.actions.act_window">
<field name="name">Products Series</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.series</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem action="product_series_action_form" id="menu_product_series_action_form" parent="base.menu_product"/>
<!-- Inherited Product -->
<record model="ir.ui.view" id="view_product_series_form">
<field name="name">product.normal.form</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">
<field name="variants" position="before">
<field name="series" select="1"/>
</field>
</field>
</record>
</data>
</openerp>