bom_view.xml
11.2 KB
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!--purchase模块-->
<record id="mrp_acc_form_view" model="ir.ui.view">
<field name="name">mrp.acc.form</field>
<field name="model">mrp.bom</field>
<field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
<field name="arch" type="xml">
<!-- <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-bars">
<field name="active" widget="boolean_button" options="{"terminology": "archive"}"/>
</button> -->
<xpath expr="//field[@name='product_tmpl_id']" position="attributes" >
<attribute name="string">物料清单名称</attribute>
</xpath>
<xpath expr="//field[@name='code']" position="after">
<button name="%(import_bom_data_wizard)d" type="action" string="导入物料清单" class="oe_highlight" groups="acct_base.acc_manufacture_level_group"/>
<button name="export_bom_record" string="导出明细行" type="object" class="oe_highlight" groups="acct_base.acc_manufacture_level_group"/>
<button name="update_newinfo" string="更新产品信息" type="object" class="oe_highlight" groups="acct_base.acc_manufacture_level_group"/>
<field name="acc_type"/>
<field name="merge_info"/>
<!-- <field name="is_active"/> -->
<field name="version"/>
<field name="version_date"/>
</xpath>
<xpath expr="/form/sheet/notebook/page/field/tree/field[@name='product_id']" position="after">
<field name="number"/>
<field name="acc_code"/>
<!-- <field name="internal_des"/> -->
<field name="product_model"/>
<field name="brand"/>
</xpath>
</field>
</record>
<record id="mrp_acc_tree_inherit" model="ir.ui.view">
<field name="name">mrp.bom.tree.inherit</field>
<field name="model">mrp.bom</field>
<field name="inherit_id" ref="mrp.mrp_bom_tree_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='product_tmpl_id']" position="attributes" >
<attribute name="string">物料清单名称</attribute>
</xpath>
<xpath expr="//field[@name='product_tmpl_id']" position="after">
<field name="version_date"/>
</xpath>
</field>
</record>
<record id="acct_mrp_bom_form_action" model="ir.actions.act_window">
<field name="name">所有物料清单</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.bom</field>
<field name="domain">[]</field> <!-- force empty -->
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
</record>
<record id="acct_standard_mrp_bom_form_action" model="ir.actions.act_window">
<field name="name">标准物料清单</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.bom</field>
<field name="domain">[('acc_type','=','standard')]</field> <!-- force empty -->
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
</record>
<record id="acct_base_mrp_bom_form_action" model="ir.actions.act_window">
<field name="name">基础物料清单</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.bom</field>
<field name="domain">[('acc_type','=','base')]</field> <!-- force empty -->
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
</record>
<record id="acct_change_mrp_bom_form_action" model="ir.actions.act_window">
<field name="name">可变物料清单</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.bom</field>
<field name="domain">[('acc_type','=','change')]</field> <!-- force empty -->
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
</record>
<!-- <record id="acct_expire_mrp_bom_form_action" model="ir.actions.act_window">
<field name="name">过期物料清单</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.bom</field>
<field name="domain">[('is_active','=',False)]</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
</record> -->
<!-- mrp.production视图继承 -->
<record id="mrp_production_acc_form_view" model="ir.ui.view">
<field name="name">mrp.production.acc.form</field>
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='action_assign']" position="after">
<button name="update_forcast_date" string="更新到货时间" type="object" class="oe_highlight"/>
</xpath>
<xpath expr="//field[@name='date_planned_start']" position="attributes" >
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='origin']" position="after">
<field name="code"/>
<!-- <button name="update_forcast_date" string="更新到货时间" type="object" class="oe_highlight"/> -->
<field name="acc_start_date"/>
<field name="plan_send_date"/>
<field name="plan_date"/>
<field name="date_finished"/>
</xpath>
<!-- <xpath expr="/form/sheet/notebook/page/field/tree/field[@name='product_id']" position="after">
<field name="product_model"/>
<field name="acc_code"/>
<field name="brand"/>
<field name="forcast_date"/>
<field name="location_id"/>
</xpath> -->
</field>
</record>
<record id="mrp_production_acc_tree_inherit" model="ir.ui.view">
<field name="name">mrp.production.tree.inherit</field>
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_tree_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="attributes" >
<attribute name="string">生产单号</attribute>
</xpath>
<xpath expr="//field[@name='origin']" position="attributes" >
<attribute name="string">项目号(SO号)</attribute>
</xpath>
<xpath expr="//field[@name='product_id']" position="attributes" >
<attribute name="string">设备名称</attribute>
</xpath>
<xpath expr="//field[@name='availability']" position="attributes" >
<attribute name="string">物料状态</attribute>
</xpath>
<xpath expr="//field[@name='date_planned_start']" position="attributes" >
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='routing_id']" position="attributes" >
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='product_id']" position="before">
<field name="code"/>
</xpath>
<xpath expr="//field[@name='product_id']" position="after">
<field name="acc_start_date"/>
<field name="plan_date"/>
</xpath>
<xpath expr="//field[@name='state']" position="after">
<field name="plan_send_date"/>
</xpath>
</field>
</record>
<!-- mrp.eco视图继承 -->
<record id="mrp_eco_acc_form_view" model="ir.ui.view">
<field name="name">mrp.eco.acc.form</field>
<field name="model">mrp.eco</field>
<field name="inherit_id" ref="mrp_plm.mrp_eco_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='user_id']" position="after">
<field name="is_use"/>
<field name="before_purchase_id"/>
<field name="change_reason"/>
</xpath>
<xpath expr="/form/sheet/notebook/page/field/tree/field[@name='product_id']" position="after">
<field name="acc_code"/>
<field name="product_model"/>
<field name="brand"/>
</xpath>
</field>
</record>
<!-- mrp.eco列表视图继承 -->
<!-- <record id="mrp_eco_acc_tree_view" model="ir.ui.view">
<field name="name">mrp.eco.acc.tree</field>
<field name="model">mrp.eco</field>
<field name="inherit_id" ref="mrp_plm.mrp_eco_view_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='user_id']" position="after">
<field name="is_use"/>
<field name="before_purchase_id"/>
<field name="change_reason"/>
</xpath>
</field>
</record> -->
<!-- <menuitem id="menu_acc_bom_management" name="物料清单信息"
parent="purchase.menu_purchase_root" sequence="3" />
<menuitem id="menu_acct_all_bom" name="物料清单" parent="menu_acc_bom_management" action="acct_mrp_bom_form_action" groups="purchase.group_purchase_user" sequence="5"/> -->
<!-- <menuitem id="menu_acct_standard_bom" name="标准物料清单" parent="menu_acc_bom_management" action="acct_standard_mrp_bom_form_action" groups="purchase.group_purchase_user" sequence="1"/>
<menuitem id="menu_acct_base_bom" name="基础物料清单" parent="menu_acc_bom_management" action="acct_base_mrp_bom_form_action" groups="purchase.group_purchase_user" sequence="2"/>
<menuitem id="menu_acct_change_bom" name="可变物料清单" parent="menu_acc_bom_management" action="acct_change_mrp_bom_form_action" groups="purchase.group_purchase_user" sequence="3"/> -->
<!-- <menuitem id="menu_acct_expire_bom" name="过期物料清单" parent="menu_acc_bom_management" action="acct_expire_mrp_bom_form_action" groups="purchase.group_purchase_user" sequence="4"/> -->
<!-- <menuitem id="menu_acct_merge_bom_form_action" name="物料清单合并" parent="menu_acc_bom_management" action="merge_bom_wizard" groups="purchase.group_purchase_user" sequence="10"/> -->
</data>
</openerp>