forked from OCA/product-attribute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct_index_view.xml
64 lines (60 loc) · 2.01 KB
/
product_index_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
#---------------------------------------------------------
# Indexes
#---------------------------------------------------------
<record model="ir.ui.view" id="view_index_tree">
<field name="name">product.index.tree</field>
<field name="model">product.index</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Indexes">
<field name="name"/>
<field name="code"/>
<field name="rate"/>
<field name="rounding"/>
<field name="active" />
</tree>
</field>
</record>
<record model="ir.ui.view" id="view_index_form">
<field name="name">product.index.form</field>
<field name="model">product.index</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="index">
<field name="name" select="1" colspan="3"/>
<field name="code" select="1"/>
<field name="rate"/>
<field name="rounding"/>
<field name="active" select="1"/>
<field name="rate_ids" colspan="4" nolabel="1" mode="tree,form">
<form string="Rates">
<field name="name"/>
<field name="rate"/>
</form>
<tree string="Rates">
<field name="name"/>
<field name="rate"/>
</tree>
</field>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="action_index_form">
<field name="name">product.index</field>
<field name="res_model">product.index</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
</record>
<record model="ir.actions.act_window" id="action_index_tree">
<field name="name">product.index</field>
<field name="res_model">product.index</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem name="Indexes" id="menu_product_config_index" parent="base.menu_product" action="action_index_tree"/>
<menuitem name="New index" id="menu_product_config_new_index" parent="menu_product_config_index" action="action_index_form"/>
</data>
</openerp>