~unifield-team/unifield-wm/us-826

2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
1
<?xml version="1.0" encoding="utf-8"?>
2
<openerp>
3
	<data>
4
5
		<record id="view_order_form" model="ir.ui.view">
6
			<field name="name">sale.order.form</field>
7
			<field name="model">sale.order</field>
8
			<field name="type">form</field>
143.2.4 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
9
			<field name="priority" eval="200" />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
10
			<field name="inherit_id" ref="sale.view_order_form" />
11
			<field name="arch" type="xml">
12
				<data>
143.2.1 by chloups208
[UF-263] reorganization of order forms for nomenclature
13
				
143.2.3 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
14
					<!-- modification of the tree -->
205.1.1 by chloups208
RC6 correction : UF-294 UF-307 UF-306
15
					<xpath expr="//form[@string='Sales Order']//tree[@string='Sales Order Lines']/field[@name='name']" position="replace">
16
						<field name="default_name" />
17
						<field name="comment" />
18
					</xpath>
19
					<xpath expr="//form[@string='Sales Order']//tree[@string='Sales Order Lines']/field[@name='default_name']" position="before">
143.2.3 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
20
						<field name="default_code" />
21
					</xpath>
22
					
143.2.5 by chloups208
[UF-263] removed le sapin de noel, removed functional finance from tree from order form, moved to order line forms, removed unit price from tree from order form
23
					<xpath expr="//form[@string='Sales Order']//tree[@string='Sales Order Lines']/field[@name='price_unit']" position="replace">
24
					</xpath>
25
					
205.1.1 by chloups208
RC6 correction : UF-294 UF-307 UF-306
26
					<xpath expr="//form[@string='Sales Order']//tree[@string='Sales Order Lines']/field[@name='comment']" position="after">
143.2.3 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
27
						<field name="nomenclature_description" />
28
					</xpath>
29
					
30
					<xpath expr="//form[@string='Sales Order']//tree[@string='Sales Order Lines']/field[@name='product_uom']" position="after">
31
						<field name="date_planned" />
32
						<field name="confirmed_delivery_date" />
33
					</xpath>
201.3.2 by chloups208
[UF-239] correct bug which clears Comment when we change the quantity or packaging
34
					
35
					<!-- modification of onchange function - avoid change to clear Comment field -->
36
					<xpath expr="//form//page[@string='Order Line']/field[@name='product_uom_qty']" position="replace">
37
						<field
38
		                    context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
39
		                    name="product_uom_qty"
40
		                    on_change="product_qty_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], False, parent.date_order, product_packaging, parent.fiscal_position, True)"
41
		                    />
42
					</xpath>
43
					
44
					<xpath expr="//form//page[@string='Order Line']/field[@name='product_packaging']" position="replace">
45
						<field
46
	                        name="product_packaging"
47
	                        context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
48
	                        on_change="product_packaging_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], False, parent.date_order, product_packaging, parent.fiscal_position, False)"
49
	                        domain="[('product_id','=',product_id)]"
896.9.1 by pierre-marie
UF-1147 - Orders ppt
50
                            invisible="1" />
51
					</xpath>
52
53
					<xpath expr="//form//page[@string='Order Line']/field[@name='currency_id']" position="attributes">
896.9.2 by pierre-marie
UF1147 - Usability Requirements: Orders
54
                         <attribute name="invisible">False</attribute>
896.9.1 by pierre-marie
UF-1147 - Orders ppt
55
					</xpath>
56
					<xpath expr="//form//page[@string='Order Line']/field[@name='currency_id']" position="after">
57
                        <newline />
58
					</xpath>
59
143.2.3 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
60
				
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
61
					<!-- EXACT COPY SO-> Po -->
143.2.1 by chloups208
[UF-263] reorganization of order forms for nomenclature
62
					<xpath expr="//form//page[@string='Order Line']/field[@name='name']" position="replace"></xpath>
63
					
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
64
					<page string="Order Line" position="after">
65
66
						<!-- EXACT COPY-PASTE FROM product_nomenclature_view.xml -->
143.2.2 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
67
						<page string="Nomenclature Selection">
143.2.1 by chloups208
[UF-263] reorganization of order forms for nomenclature
68
						
69
							<group colspan="4" col="2">
70
								
143.2.2 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
71
								<field name="nomenclature_code" colspan="2" invisible="True" />
72
								<field name="nomenclature_description" colspan="2" readonly="True" />
205.1.1 by chloups208
RC6 correction : UF-294 UF-307 UF-306
73
								<field name="comment" colspan="2" attrs="{'required':[('product_id', '=', False)]}" />
143.2.1 by chloups208
[UF-263] reorganization of order forms for nomenclature
74
							
75
							</group>
76
							<newline />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
77
78
							<group colspan="2" col="5">
143.2.1 by chloups208
[UF-263] reorganization of order forms for nomenclature
79
								<separator string="Mandatory Levels" colspan="5" />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
80
81
								<group colspan="4" col="2">
82
									<field name="nomen_manda_0"
83
										domain="[('level', '=', '0'), ('type', '=', 'mandatory')]"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
84
                                        widget="selection"
85
                                        on_change="onChangeSearchNomenclature(0, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
86
										attrs="{'required':[('product_id', '=', False)], 'readonly':[('product_id', '!=', False)]}" 
87
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
88
									<field name="nomen_manda_1"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
89
										domain="[('level', '=', '1'), ('type', '=', 'mandatory')]"
90
										widget="selection"
91
                                        get_selection="get_nomen"
92
                                        on_change="onChangeSearchNomenclature(1, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
896.9.1 by pierre-marie
UF-1147 - Orders ppt
93
                                        attrs="{'required':[('product_id', '=', False)], 'readonly':[('product_id', '!=', False)]}" 
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
94
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
95
									<field name="nomen_manda_2"
1038.15.6 by Quentin THEURET
UF-1199 [IMP] Don't display nomenclature family with no associated category in product/po/fo form view
96
										domain="[('level', '=', '2'), ('type', '=', 'mandatory'), ('category_id', '!=', False)]"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
97
										widget="selection"
98
                                        get_selection="get_nomen"
99
                                        on_change="onChangeSearchNomenclature(2, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
896.9.1 by pierre-marie
UF-1147 - Orders ppt
100
                                        attrs="{'required':[('product_id', '=', False)], 'readonly':[('product_id', '!=', False)]}" 
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
101
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
102
									<field name="nomen_manda_3"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
103
										domain="[('level', '=', '3'), ('type', '=', 'mandatory')]"
104
										widget="selection"
105
                                        get_selection="get_nomen"
106
                                        on_change="onChangeSearchNomenclature(3, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
107
                                        attrs="{'readonly':[('product_id', '!=', False)]}" 
108
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
109
								</group>
110
111
							</group>
112
113
							<group colspan="2" col="5">
114
								<separator string="Optional Levels" colspan="4" />
115
116
117
								<group colspan="4" col="2">
118
									<!--
119
										Added False as parent_id clause to enable global optional
120
										levels (for med, log,...)
121
									-->
122
									<field name="nomen_sub_0"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
123
                                        domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
124
                                        widget="selection"
125
                                        get_selection="get_sub_nomen"
431.3.4 by jf
UF-606: order nomenclature on change to fill nomenclature description
126
                                        on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
127
										attrs="{'readonly':[('product_id', '!=', False)]}" 
128
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
129
									<field name="nomen_sub_1"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
130
                                        domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
131
                                        widget="selection"
132
                                        get_selection="get_sub_nomen"
431.3.4 by jf
UF-606: order nomenclature on change to fill nomenclature description
133
                                        on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
134
										attrs="{'readonly':[('product_id', '!=', False)]}" 
135
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
136
									<field name="nomen_sub_2"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
137
                                        domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
138
                                        widget="selection"
139
                                        get_selection="get_sub_nomen"
431.3.4 by jf
UF-606: order nomenclature on change to fill nomenclature description
140
                                        on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
141
										attrs="{'readonly':[('product_id', '!=', False)]}" 
142
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
143
									<field name="nomen_sub_3"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
144
                                        domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
145
                                        widget="selection"
146
                                        get_selection="get_sub_nomen"
431.3.4 by jf
UF-606: order nomenclature on change to fill nomenclature description
147
                                        on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
148
										attrs="{'readonly':[('product_id', '!=', False)]}" 
149
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
150
									<field name="nomen_sub_4"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
151
                                        domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
152
                                        widget="selection"
153
                                        get_selection="get_sub_nomen"
431.3.4 by jf
UF-606: order nomenclature on change to fill nomenclature description
154
                                        on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
155
										attrs="{'readonly':[('product_id', '!=', False)]}" 
156
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
157
									<field name="nomen_sub_5"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
158
                                        domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
159
                                        widget="selection"
160
                                        get_selection="get_sub_nomen"
431.3.4 by jf
UF-606: order nomenclature on change to fill nomenclature description
161
                                        on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
162
										attrs="{'readonly':[('product_id', '!=', False)]}" 
163
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
164
								</group>
165
166
							</group>
167
						</page>
168
						<!-- END COPY -->
169
170
171
					</page>
172
					<!-- END EXACT COPY SO-> Po -->
173
174
				</data>
175
			</field>
176
		</record>
143.2.2 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
177
		
178
		<record id="purchase_order_form" model="ir.ui.view">
179
            <field name="name">purchase.order.form.inherit</field>
180
            <field name="model">purchase.order</field>
181
			<field name="type">form</field>
182
			<field name="inherit_id" ref="purchase.purchase_order_form" />
183
			<field name="priority" eval="200" />
184
			<field name="arch" type="xml">
185
				<data>
820.1.2 by chloups208
uf-921 Purchase Order Lines becomes Lines
186
					<xpath expr="/form/notebook/page/field[@name='order_line']/tree/field[@name='name']" position="replace">
205.1.1 by chloups208
RC6 correction : UF-294 UF-307 UF-306
187
						<field name="default_name" />
1533.6.1 by matthieu.choplin at msf
[FIX] uf-1877: the field 'comment' which was invisible was not the good one
188
						<field name="inactive_error" invisible="1" />
189
						<field name="comment" />
205.1.1 by chloups208
RC6 correction : UF-294 UF-307 UF-306
190
					</xpath>
191
					
820.1.2 by chloups208
uf-921 Purchase Order Lines becomes Lines
192
					<xpath expr="/form/notebook/page/field[@name='order_line']/tree/field[@name='default_name']" position="before">
143.2.3 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
193
						<field name="default_code" />
143.2.2 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
194
					</xpath>
195
					
820.1.2 by chloups208
uf-921 Purchase Order Lines becomes Lines
196
					<xpath expr="/form/notebook/page/field[@name='order_line']/tree/field[@name='comment']" position="after">
143.2.2 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
197
						<field name="nomenclature_description" />
198
					</xpath>
199
					
820.1.2 by chloups208
uf-921 Purchase Order Lines becomes Lines
200
					<xpath expr="/form/notebook/page/field[@name='order_line']/tree/field[@name='date_planned']" position="replace">
201
					</xpath>
202
					
203
					<xpath expr="/form/notebook/page/field[@name='order_line']/tree/field[@name='price_unit']" position="replace">
204
					</xpath>
205
					
206
					<xpath expr="/form/notebook/page/field[@name='order_line']/tree/field[@name='product_uom']" position="after">
143.2.2 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
207
						<field name="date_planned" />
143.2.3 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
208
						<field name="confirmed_delivery_date" />
143.2.2 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
209
					</xpath>
210
					
211
					
212
					
213
				</data>
214
			</field>
215
		</record>
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
216
217
		<record id="purchase_order_line_form" model="ir.ui.view">
218
			<field name="name">purchase.order.line.form</field>
219
			<field name="model">purchase.order.line</field>
220
			<field name="type">form</field>
143.2.1 by chloups208
[UF-263] reorganization of order forms for nomenclature
221
			<field name="priority" eval="100" />
778.1.7 by Quentin THEURET
UF-943 [IMP] Improve the computation of prices
222
			<field name="inherit_id" ref="purchase_override.purchase_order_line_form_view_inherit" />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
223
			<field name="arch" type="xml">
224
				<data>
201.3.2 by chloups208
[UF-239] correct bug which clears Comment when we change the quantity or packaging
225
				
226
					<!-- modification of onchange function - avoid change to clear Comment field -->
227
					<xpath expr="//form//page[@string='Order Line']/field[@name='product_qty']" position="replace">
878.2.4 by Quentin THEURET
[FIX] Purchase order line : Add context on product qty change to compute the unit price with all qty in order
228
						<field name="product_qty" context="partner_id=parent.partner_id,quantity=product_qty,pricelist=parent.pricelist_id,uom=product_uom,warehouse=parent.warehouse_id" 
229
							on_change="product_qty_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id,parent.date_order,parent.fiscal_position,date_planned,name,price_unit,notes,parent.state,old_price_unit,nomen_manda_0,comment, context)"/>
201.3.2 by chloups208
[UF-239] correct bug which clears Comment when we change the quantity or packaging
230
					</xpath>
2.10.10 by chloups208
[UF-43] small fix on nomenclature screen, domain must be char not integer, as 0 is interpreted as False
231
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
232
					<!-- EXACT COPY SO-> Po -->
143.2.3 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
233
					<xpath expr="//form//page[@string='Order Line']/field[@name='name']" position="replace"></xpath>
143.2.1 by chloups208
[UF-263] reorganization of order forms for nomenclature
234
					
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
235
					<page string="Order Line" position="after">
236
237
						<!-- EXACT COPY-PASTE FROM product_nomenclature_view.xml -->
143.2.3 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
238
						<page string="Nomenclature Selection">
239
						
240
							<group colspan="4" col="2">
241
								
242
								<field name="nomenclature_code" colspan="2" invisible="True" />
243
								<field name="nomenclature_description" colspan="2" readonly="True" />
205.1.1 by chloups208
RC6 correction : UF-294 UF-307 UF-306
244
								<field name="comment" colspan="2" attrs="{'required':[('product_id', '=', False)]}" />
143.2.3 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
245
							
246
							</group>
247
							<newline />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
248
249
							<group colspan="2" col="5">
143.2.3 by chloups208
[UF-263] modify of purchase order line form, sale order line form, purchase order form and sale order form for new layout wishes
250
								<separator string="Mandatory Levels" colspan="5" />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
251
252
								<group colspan="4" col="2">
253
									<field name="nomen_manda_0"
254
										domain="[('level', '=', '0'), ('type', '=', 'mandatory')]"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
255
                                        widget="selection"
256
                                        on_change="onChangeSearchNomenclature(0, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
257
										attrs="{'required':[('product_id', '=', False)], 'readonly':[('product_id', '!=', False)]}" 
258
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
259
									<field name="nomen_manda_1"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
260
										domain="[('level', '=', '1'), ('type', '=', 'mandatory')]"
261
										widget="selection"
262
                                        get_selection="get_nomen"
263
                                        on_change="onChangeSearchNomenclature(1, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
1074.4.1 by matthieu.choplin at msf
extend the required nomenclature level for PO and IR. Default procurment method is order on FO if no product has been selected
264
                                        attrs="{'required':[('product_id', '=', False)], 'readonly':[('product_id', '!=', False)]}" 
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
265
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
266
									<field name="nomen_manda_2"
1038.15.6 by Quentin THEURET
UF-1199 [IMP] Don't display nomenclature family with no associated category in product/po/fo form view
267
										domain="[('level', '=', '2'), ('type', '=', 'mandatory'), ('category_id', '!=', False)]"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
268
										widget="selection"
269
                                        get_selection="get_nomen"
270
                                        on_change="onChangeSearchNomenclature(2, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
1074.4.1 by matthieu.choplin at msf
extend the required nomenclature level for PO and IR. Default procurment method is order on FO if no product has been selected
271
                                        attrs="{'required':[('product_id', '=', False)], 'readonly':[('product_id', '!=', False)]}" 
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
272
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
273
									<field name="nomen_manda_3"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
274
										domain="[('level', '=', '3'), ('type', '=', 'mandatory')]"
275
										widget="selection"
276
                                        get_selection="get_nomen"
277
                                        on_change="onChangeSearchNomenclature(3, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
278
                                        attrs="{'readonly':[('product_id', '!=', False)]}" 
279
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
280
								</group>
281
282
							</group>
283
284
							<group colspan="2" col="5">
285
								<separator string="Optional Levels" colspan="4" />
286
287
288
								<group colspan="4" col="2">
289
									<!--
290
										Added False as parent_id clause to enable global optional
291
										levels (for med, log,...)
292
									-->
293
									<field name="nomen_sub_0"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
294
                                        domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
295
                                        widget="selection"
296
                                        get_selection="get_sub_nomen"
431.3.4 by jf
UF-606: order nomenclature on change to fill nomenclature description
297
                                        on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
298
										attrs="{'readonly':[('product_id', '!=', False)]}" 
299
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
300
									<field name="nomen_sub_1"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
301
                                        domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
302
                                        widget="selection"
303
                                        get_selection="get_sub_nomen"
431.3.4 by jf
UF-606: order nomenclature on change to fill nomenclature description
304
                                        on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
305
										attrs="{'readonly':[('product_id', '!=', False)]}" 
306
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
307
									<field name="nomen_sub_2"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
308
                                        domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
309
                                        widget="selection"
310
                                        get_selection="get_sub_nomen"
431.3.4 by jf
UF-606: order nomenclature on change to fill nomenclature description
311
                                        on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
312
										attrs="{'readonly':[('product_id', '!=', False)]}" 
313
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
314
									<field name="nomen_sub_3"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
315
                                        domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
316
                                        widget="selection"
317
                                        get_selection="get_sub_nomen"
431.3.4 by jf
UF-606: order nomenclature on change to fill nomenclature description
318
                                        on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
319
										attrs="{'readonly':[('product_id', '!=', False)]}" 
320
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
321
									<field name="nomen_sub_4"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
322
                                        domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
323
                                        widget="selection"
431.3.4 by jf
UF-606: order nomenclature on change to fill nomenclature description
324
                                        on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
325
                                        get_selection="get_sub_nomen"
326
										attrs="{'readonly':[('product_id', '!=', False)]}" 
327
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
328
									<field name="nomen_sub_5"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
329
                                        domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
330
                                        widget="selection"
331
                                        get_selection="get_sub_nomen"
431.3.4 by jf
UF-606: order nomenclature on change to fill nomenclature description
332
                                        on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
431.3.3 by jf
UF-606: modification m2o as selection: get_selection
333
										attrs="{'readonly':[('product_id', '!=', False)]}" 
334
                                    />
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
335
								</group>
336
337
							</group>
338
						</page>
339
						<!-- END COPY -->
340
341
342
					</page>
343
					<!-- END EXACT COPY SO-> Po -->
2.10.10 by chloups208
[UF-43] small fix on nomenclature screen, domain must be char not integer, as 0 is interpreted as False
344
2.10.1 by patrick.amstutz at msf
[UF-43][UF-88] new bazaar branch policy
345
				</data>
346
			</field>
347
		</record>
348
349
350
	</data>
351
</openerp>