-
Notifications
You must be signed in to change notification settings - Fork 6
/
product.xml
58 lines (54 loc) · 2.08 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
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="product_code_view_form">
<field name="model">product.product.code</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Product Code">
<label name="code"/>
<field name="code"/>
<label name="code_type"/>
<field name="code_type"/>
<label name="product"/>
<field name="product"/>
<label name="active"/>
<field name="active"/>
</form>
]]>
</field>
</record>
<record model="ir.ui.view" id="product_code_view_tree">
<field name="model">product.product.code</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Product Code">
<field name="code"/>
<field name="code_type"/>
<field name="product"/>
<field name="active"/>
</tree>
]]>
</field>
</record>
<record model="ir.ui.view" id="pc_product_view_form">
<field name="model">product.product</field>
<field name="inherit" ref="product.product_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/form/notebook" position="inside">
<page id="codes" string="Codes">
<field name="codes"/>
</page>
</xpath>
</data>
]]>
</field>
</record>
</data>
</tryton>