forked from OCA/product-attribute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
product_lot_foundry_view.xml
146 lines (132 loc) · 4.83 KB
/
product_lot_foundry_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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?xml version="1.0" ?>
<openerp>
<data>
<record model="ir.ui.view" id="view_production_lot_tree">
<field name="name">stock.production.lot.foundry.tree</field>
<field name="model">stock.production.lot</field>
<field name="inherit_id" ref="stock.view_production_lot_tree" />
<field name="type">tree</field>
<field name="arch" type="xml">
<field name="revisions" position="replace">
<field name="size_x"/>
<field name="size_y"/>
<field name="size_z"/>
<field name="available"/>
<field name="status"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="view_move_form_expiry">
<field name="name">stock.production.lot.form</field>
<field name="model">stock.production.lot</field>
<field name="inherit_id" ref="stock.view_production_lot_form" />
<field name="type">form</field>
<field name="arch" type="xml">
<separator position="before">
<field name="status" select="2"/>
<field name="product_id" colspan="4"/>
<field name="size_x" string="Dimension" select="1"/>
<field name="type" select="2"/>
<field name="size_y" select="1"/>
<field name="size_z" select="1"/>
<field name="heatcode_id" colspan="4" select="2"/>
<field name="quality_info" colspan="4"/>
<field name="available" colspan="4"/>
<field name="reservation_ids" colspan="4">
<tree string="Reservations">
<field name="name"/>
<field name="date"/>
<field name="size_x"/>
<field name="size_y"/>
<field name="size_z"/>
</tree>
</field>
</separator>
</field>
</record>
# --------------------------------------------------------------------
# Heat Code
# --------------------------------------------------------------------
<record model="ir.ui.view" id="view_product_lot_foundry_heatcode_tree">
<field name="name">product.lot.foundry.heatcode.tree</field>
<field name="model">product.lot.foundry.heatcode</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Heat code">
<field name="name"/>
<field name="date"/>
<field name="state"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="view_product_lot_foundry_heatcode_form">
<field name="name">product.lot.foundry.heatcode.form</field>
<field name="model">product.lot.foundry.heatcode</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Heat code">
<notebook colspan="4">
<page string="Heat Code">
<field name="name" select="1"/>
<field name="date" select="1"/>
<separator string="Chemical Properties" colspan="4"/>
<field name="chemical_ids" colspan="4" nolabel="1">
<tree string="Chemical Properties" editable="bottom">
<field name="name"/>
<field name="value"/>
</tree>
</field>
<separator string="Mechanical Properties" colspan="4"/>
<field name="mecanical_ids" colspan="4" nolabel="1">
<tree string="Mechanical Properties" editable="bottom">
<field name="name"/>
<field name="value"/>
</tree>
</field>
<field name="state"/>
</page><page string="Lots">
<field name="lot_ids" nolabel="1" colspan="4"/>
</page>
</notebook>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="action_heatcode_all">
<field name="name">Heat Codes</field>
<field name="res_model">product.lot.foundry.heatcode</field>
<field name="view_type">form</field>
</record>
<menuitem name="Inventory Control" id="menu_action_inventory"/>
<menuitem name="Heat Codes" id="menu_action_inventory_heat" parent="menu_action_inventory" action="action_heatcode_all"/>
<record model="ir.actions.act_window" id="action_heatcode_draft">
<field name="name">Draft Heat Codes</field>
<field name="res_model">product.lot.foundry.heatcode</field>
<field name="view_type">form</field>
<field name="domain">[('state','=','draft')]</field>
</record>
<menuitem name="Draft Heat Codes" id="menu_action_inventory_draft_heat" parent="menu_action_inventory_heat" action="action_heatcode_draft"/>
<record model="ir.ui.view" id="view_product_form_expiry">
<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">
<notebook position="inside">
<page string="Dimensions">
<field name="size_x" />
<field name="size_y" />
<field name="size_z" />
<newline/>
<field name="cutting" />
<field name="auto_picking" />
</page>
</notebook>
</field>
</record>
<act_window name="Lots"
domain="[('product_id', '=', active_id)]"
res_model="stock.production.lot"
src_model="product.product"
id="act_production_product"/>
</data>
</openerp>