-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct.xml
90 lines (87 loc) · 3.53 KB
/
product.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version="1.0"?>
<tryton>
<data>
<record model="ir.ui.view" id="product_view">
<field name="model">product.product</field>
<field name="type">form</field>
<field name="inherit" ref="product.product_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath
expr="/form/notebook/page[@id="general"]/field[@name='list_price']"
position="after">
<label name="book"/>
<field name="book"/>
</xpath>
</data>
]]>
</field>
</record>
<!-- Book view-->
<record model="ir.ui.view" id="book_tree_view">
<field name="model">product.book</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Books">
<field name="title"/>
<field name="author"/>
<field name="publisher"/>
</tree>
]]>
</field>
</record>
<record model="ir.ui.view" id="book_form_view">
<field name="model">product.book</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Book">
<label name="title"/>
<field name="title"/>
<label name="author"/>
<field name="author"/>
<label name="isbn10"/>
<field name="isbn10"/>
<label name="isbn13"/>
<field name="isbn13"/>
<label name="publisher"/>
<field name="publisher"/>
<label name="publishing_year"/>
<field name="publishing_year"/>
<label name="language"/>
<field name="language"/>
<label name="number_of_pages"/>
<field name="number_of_pages"/>
<notebook>
<page string="Products" id="products">
<field name="products" colspan="4"/>
</page>
<page string="Description" id="description">
<separator name="description" colspan="4"/>
<field name="description" colspan="4"/>
</page>
</notebook>
</form>
]]>
</field>
</record>
<record model="ir.action.act_window" id="act_book_form">
<field name="name">Books</field>
<field name="res_model">product.book</field>
</record>
<record model="ir.action.act_window.view" id="act_book_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="book_tree_view"/>
<field name="act_window" ref="act_book_form"/>
</record>
<record model="ir.action.act_window.view" id="act_book_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="book_form_view"/>
<field name="act_window" ref="act_book_form"/>
</record>
<menuitem parent="product.menu_product_product" sequence="30"
action="act_book_form" id="menu_book_form"/>
</data>
</tryton>