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

213.2.2 by chloups208
[UF-53][UF-58][UF-63] initial commit
1
<?xml version="1.0" encoding="UTF-8"?>
2
<openerp>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
3
	<data>
4
5
		<menuitem name="Deliveries" id="menu_warehouse_deliveries" parent="stock.menu_stock_warehouse_mgmt" sequence="3"/>
6
		<menuitem id="menu_report_config" name="Report Customization" parent="stock.menu_stock_configuration" sequence="1"/>
7
		# -------------------------------------------------------------
8
		# Labels
9
		# -------------------------------------------------------------
10
		<record id="view_labels_tree" model="ir.ui.view">
11
			<field name="name">stock.labels.tree</field>
12
			<field name="model">ppl.customize.label</field>
13
			<field name="type">tree</field>
14
			<field name="arch" type="xml">
15
				<tree string="Labels Customization">
16
					<field name="name"/>
17
					<field name="logo" />
18
					<field name="requestor_order_reference" />
19
					<field name="packing_parcel_number" />
20
					<field name="pre_packing_list_reference" />
21
					<field name="destination_partner" />
22
					<field name="destination_address" />
23
					<field name="weight" />
24
					<field name="specific_information" />
25
				</tree>
26
			</field>
27
		</record>
28
		<record id="view_labels_form" model="ir.ui.view">
29
			<field name="name">stock.labels.form</field>
30
			<field name="model">ppl.customize.label</field>
31
			<field name="type">form</field>
32
			<field name="arch" type="xml">
33
				<form string="Labels Customization">
34
					<notebook>
35
						<page string="Customization">
36
							<field name="name"/>
37
							<separator string="Options" />
38
							<field name="logo" />
39
							<field name="requestor_order_reference" />
40
							<field name="packing_parcel_number" />
41
							<field name="pre_packing_list_reference" />
42
							<field name="destination_partner" />
43
							<field name="destination_address" />
44
							<field name="weight" />
45
							<field name="specific_information" />
46
						</page>
47
						<page string="Notes">
48
							<field name="notes" nolabel="True" />
49
						</page>
50
					</notebook>
51
				</form>
52
			</field>
53
		</record>
54
		<record id="action_labels_tree" model="ir.actions.act_window">
55
			<field name="name">Labels</field>
56
			<field name="res_model">ppl.customize.label</field>
57
			<field name="type">ir.actions.act_window</field>
58
			<field name="view_type">form</field>
59
			<field name="view_mode">tree,form</field>
60
		</record>
61
		<menuitem action="action_labels_tree" id="menu_report_custo_labels" parent="menu_report_config" sequence="7"/>
62
		<record id="view_picking_out_search" model="ir.ui.view">
63
			<field name="name">view.picking.out.search</field>
64
			<field name="model">stock.picking</field>
65
			<field name="type">search</field>
66
			<field name="inherit_id" ref="stock.view_picking_out_search" />
67
			<field name="arch" type="xml">
68
				<data>
69
					<xpath expr="/search/group[@string='Group By...']/filter[@string='Partner']" position="before">
70
						<filter string="Origin" name="origin" icon="terp-partner" domain="[]" context="{'group_by':'origin'}"/>
71
					</xpath>
72
				</data>
73
			</field>
74
		</record>
75
		<record id="view_picking_out_tree" model="ir.ui.view">
76
			<field name="name">stock.picking.out.tree</field>
77
			<field name="model">stock.picking</field>
78
			<field name="type">tree</field>
79
			<field name="inherit_id" ref="stock.view_picking_out_tree" />
80
			<field name="arch" type="xml">
81
				<data>
82
					<field name="origin" position="after">
83
						<field name="sale_id" invisible="True" />
84
					</field>
85
				</data>
86
			</field>
87
		</record>
88
		<record id="stock.action_picking_tree" model="ir.actions.act_window">
89
			<field name="name">Delivery Orders</field>
90
			<field name="res_model">stock.picking</field>
91
			<field name="type">ir.actions.act_window</field>
92
			<field name="view_type">form</field>
93
			<field name="view_mode">tree,form,calendar</field>
94
			<field name="domain">[('type','=','out'), ('subtype', '=', 'standard')]</field>
1041.1.15 by Quentin THEURET
UF-1040 [IMP] Set locations by default
95
			<field name="context">{'contact_display': 'partner_address', 'search_default_available': 1,'picking_type': 'delivery_order', 'subtype': 'standard'}</field>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
96
			<field name="search_view_id" ref="stock.view_picking_out_search"/>
97
			<field name="help">This is the list of all delivery orders that have to be prepared, according to your different sales orders and your logistics rules.</field>
98
		</record>
99
		<menuitem id="stock.menu_action_picking_tree" parent="menu_warehouse_deliveries" />
100
		<record id="view_warehouse" model="ir.ui.view">
101
			<field name="name">stock.warehouse</field>
102
			<field name="model">stock.warehouse</field>
103
			<field name="type">form</field>
104
			<field name="inherit_id" ref="stock.view_warehouse" />
105
			<field name="arch" type="xml">
106
				<data>
107
108
					<field name="lot_stock_id" position="after">
109
						<field name="lot_packing_id" domain="[('quarantine_location', '=', False)]" />
110
						<field name="lot_dispatch_id" domain="[('quarantine_location', '=', False)]" />
111
						<field name="lot_distribution_id" domain="[('quarantine_location', '=', False)]" />
112
					</field>
113
				</data>
114
			</field>
115
		</record>
116
		<record id="view_pack_type_tree" model="ir.ui.view">
117
			<field name="name">pack.type.tree</field>
118
			<field name="model">pack.type</field>
119
			<field name="type">tree</field>
120
			<field name="arch" type="xml">
121
				<tree string="Pack Types" editable="bottom">
122
					<field name="name" />
123
					<field name="length" />
124
					<field name="width" />
125
					<field name="height" />
126
				</tree>
127
			</field>
128
		</record>
129
		<record id="action_pack_type_tree" model="ir.actions.act_window">
130
			<field name="name">Pack Types</field>
131
			<field name="type">ir.actions.act_window</field>
132
			<field name="res_model">pack.type</field>
133
			<field name="view_type">form</field>
134
			<field name="view_id" ref="view_pack_type_tree"/>
135
			<field name="help">This is the list of all your pack types.</field>
136
		</record>
137
		<menuitem action="action_pack_type_tree" id="menu_action_pack_type_tree"
138
		sequence="6"
139
		parent="stock.menu_product_in_config_stock"/>
140
		<!-- Changed name to 'Picking Tickets' -->
213.2.2 by chloups208
[UF-53][UF-58][UF-63] initial commit
141
		<record id="view_picking_ticket_tree" model="ir.ui.view">
614.2.67 by chloups208
uf-844 merge trunk
142
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
143
			<field name="name">picking.ticket.tree</field>
144
			<field name="model">stock.picking</field>
145
			<field name="type">tree</field>
146
			<field name="arch" type="xml">
1681.11.13 by Quentin THEURET
UF-2073 [IMP] For stock.picking in draft state, set the line in red if the current_date is greater than the expected_date
147
				<tree colors="blue:state in ('draft') and min_date &gt;= current_date;grey:state in ('cancel');red:state not in ('cancel', 'done') and min_date &lt; current_date" string="Picking Tickets">
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
148
					<field name="name"/>
781.5.1 by Quentin THEURET
[FIX] Made the partner not mandatory on internal picking
149
					<field name="partner_id2" />
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
150
					<field name="backorder_id" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
151
					<field name="sale_id" invisible="True" />
152
					<field name="reason_type_id" />
153
					<field name="origin"/>
154
					<field name="overall_qty" invisible="True" />
155
					<field name="date"/>
156
					<field name="min_date" string="Expected Pick Date" />
1681.11.5 by Quentin THEURET
UF-2073 [IMP] Draft picking tickets : Add a field to show state of lines
157
                    <field name="state"/>
158
                    <field name="line_state" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
159
					<button name="create_picking" states="draft" string="Create Picking..." type="object" icon="gtk-add"/>
160
					<button name="validate_picking" states="assigned" string="Validate Picking..." type="object" icon="gtk-apply"/>
161
				</tree>
162
			</field>
163
		</record>
164
		<!-- Remove 'Process Later' (draft_force_assign) and 'Process Now' (draft_validate) buttons -->
165
		<!-- 'Check Availability' button available for 'draft' state -->
166
		<!-- Add 'Create Picking...' button -->
167
		<!-- Changed name to 'Picking Ticket' -->
168
		<!-- Add 'Flow Type' drop down list -->
169
		<!-- TREE -->
170
		<!-- Remove 'Scrap Products' button -->
171
		<!-- Remove 'Scrapped' -->
172
		<!-- Remove 'Split in production lots' -->
173
		<!-- Remove 'Put in current pack' -->
174
		<!-- Remove 'Put in a new pack' -->
175
		<!-- Remove 'Process' at stock.move level -->
176
		<!-- FORM -->
177
		<!-- Remove 'Scrap' button -->
178
		<!-- Remove 'New Pack' -->
179
		<!-- Remove 'tracking_id' -->
180
		<!-- Remove 'Split' -->
181
		<!-- Remove 'Process' button -->
182
		<!-- Added Asset Id to move tree and form -->
183
		<record id="view_picking_ticket_form" model="ir.ui.view">
184
			<field name="name">picking.ticket.form</field>
185
			<field name="model">stock.picking</field>
186
			<field name="type">form</field>
187
			<!-- without priority 'view_picking_form' from stock is used -->
188
			<!-- but then other form view also use it... -->
189
			<!-- <field eval="11" name="priority"/> -->
190
			<field name="arch" type="xml">
1382.1.1 by Quentin THEURET
UF-1692 [FIX] :
191
				<form string="Picking Ticket">
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
192
					<group col="6" colspan="4">
193
						<group colspan="4" col="4">
194
							<field name="name" readonly="1"/>
195
							<field name="origin" readonly="1"/>
196
							<field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)"
781.5.1 by Quentin THEURET
[FIX] Made the partner not mandatory on internal picking
197
                                                        required="1"
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
198
							attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
199
							<field name="address_id" colspan="2" context="{'contact_display':'partner'}" attrs="{'required': [('subtype', 'in', ('picking', 'ppl'))]}" />
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
200
							<field name="backorder_id" readonly="1" />
1074.18.7 by Quentin THEURET
UF-1027 [IMP] Made reason type readonly if the picking comes from wkf
201
							<field name="reason_type_id" widget="selection" domain="[('outgoing_ok', '=', True)]" attrs="{'readonly': [('from_wkf', '=', True)]}"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
202
						</group>
203
						<group colspan="2" col="2">
896.10.1 by Quentin THEURET
UF-1149 [IMP] Picking doc : Rework picking doc views
204
							<field name="date" readonly="1"/>
1249.11.12 by Matthieu Dietrich
UF-1525: [FIX] reverted the domain on stock.journal
205
							<field name="stock_journal_id" widget="selection" invisible="True" />
1307.7.3 by Quentin THEURET
UF-1620 [IMP] Add date management on INT/OUT/PICK/PACK
206
							<field name="min_date" string="Expected Pick Date" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}" 
207
								   on_change="change_min_date()" required="1" />
208
                            <field name="min_date_manually" invisible="1" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
209
							<field name="sale_id" invisible="True" />
210
							<field name="subtype" invisible="True" />
211
							<field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking')]}" />
212
						</group>
213
					</group>
214
					<notebook colspan="4">
215
						<page string="Products">
1074.5.5 by chloups208
uf-1299 uf-1339 merge lp:unifield-wm@1089
216
							<field name="from_wkf" invisible="1"/>
217
							<field colspan="4" 
218
								name="move_lines" 
219
								nolabel="1" 
220
								widget="one2many_list" 
1307.7.3 by Quentin THEURET
UF-1620 [IMP] Add date management on INT/OUT/PICK/PACK
221
								default_get="{'subtype': subtype, 'type': 'out', 'reason_type_id': reason_type_id, 'move_line':move_lines and [move_lines[-1]] or [], 'address_out_id': address_id, 'warehouse_id': warehouse_id, 'from_wkf': from_wkf, 'date_expected': min_date}" 
1041.1.15 by Quentin THEURET
UF-1040 [IMP] Set locations by default
222
							    on_change="onchange_move()"  
1074.5.5 by chloups208
uf-1299 uf-1339 merge lp:unifield-wm@1089
223
							    >
1775.1.41 by Quentin THEURET
UTP-872 [IMP] Add the possibility to cancel an line on draft PT and OUT. At line cancelation, a wizard asks the user if he wants to re-source the need
224
								<tree string="Stock Moves" noteditable="fake_state in ('assigned', 'cancel')" hide_new_button="context.get('from_wkf')" hide_delete_button="context.get('from_wkf')"
1394.9.26 by Quentin THEURET
UF-1403 [IMP] Product deactivation : Add error on document lines if the product in line is inactive
225
								colors="red: inactive_product==True">
1396.2.21 by Quentin THEURET
UF-1044 [IMP] Filter the product in documents
226
                                    <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"/>
614.2.67 by chloups208
uf-844 merge trunk
227
									<field name="composition_list_id" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
228
									<field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
229
									<field name="product_uom" string="UoM"/>
896.10.1 by Quentin THEURET
UF-1149 [IMP] Picking doc : Rework picking doc views
230
									<field name="asset_id" />
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
231
									<field name="prodlot_id" string="Batch Number" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
232
									<field name="expired_date" />
896.10.5 by Quentin THEURET
UF-1149 [IMP] Picking Ticket, PPL & moves : Rework form view
233
									<field name="kc_dg" invisible="1" />
809.15.1 by Quentin THEURET
UF-703 [IMP] Add constraints on locations fields on stock moves
234
									<field name="location_id" string="Src. Loc"  />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
235
									<field name="location_dest_id" string="Dest. Loc" />
896.10.5 by Quentin THEURET
UF-1149 [IMP] Picking Ticket, PPL & moves : Rework form view
236
									<field name="virtual_available" invisible="1" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
237
									<field name="date" string="Actual Pick Date" />
1016.7.2 by pierre-marie
Switch state and check / force availability buttons on move line in PICK
238
									<field name="state"/>
1074.5.5 by chloups208
uf-1299 uf-1339 merge lp:unifield-wm@1089
239
									<field name="fake_state" invisible="1"/>
878.4.9 by pierre-marie
Cancel Availability + Force Availability on each line in INT OUT PPL
240
								    <button name="cancel_assign" string="Cancel Availability" type="object" icon="gtk-undo" states="assigned" />
241
                                    <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
242
                                    <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
243
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
244
									<field name="lot_check" />
245
									<field name="exp_check" />
246
									<field name="kc_check" />
247
									<field name="ssl_check" invisible="True" />
248
									<field name="dg_check" />
249
									<field name="np_check" />
1394.9.26 by Quentin THEURET
UF-1403 [IMP] Product deactivation : Add error on document lines if the product in line is inactive
250
									<field name="inactive_product" invisible="1" />
1775.1.41 by Quentin THEURET
UTP-872 [IMP] Add the possibility to cancel an line on draft PT and OUT. At line cancelation, a wizard asks the user if he wants to re-source the need
251
                                    <field name="inactive_error" attrs="{'invisible': [('inactive_product', '=', False)]}" />
252
                                    <field name="pt_created" invisible="1" />
253
                                    <button name="call_cancel_wizard" type="object" string="Cancel" states="draft,assigned,confirmed" icon="gtk-del"  attrs="{'invisible': [('pt_created', '=', True)]}" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
254
								</tree>
255
								<form string="Stock Moves">
256
									<group colspan="2" col="4">
257
										<separator colspan="4" string="Move Information"/>
258
										<field name="name" invisible="1" colspan="4" />
1074.5.5 by chloups208
uf-1299 uf-1339 merge lp:unifield-wm@1089
259
										<field name="from_wkf_line" invisible="1" />
1041.1.5 by Quentin THEURET
UF-1040 [IMP] Replace the domain for source location on picking ticket moves by a fields.function
260
										<!-- Service products can't be sent -->
1074.5.2 by jf
UF-1336 [IMP] Picking / moves
261
                                        <field name="product_id"
1396.2.21 by Quentin THEURET
UF-1044 [IMP] Filter the product in documents
262
                                               context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': True, 'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"
1074.5.5 by chloups208
uf-1299 uf-1339 merge lp:unifield-wm@1089
263
                                               on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id,parent.type,purchase_line_id,True)"
264
                                               attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
1041.1.6 by Quentin THEURET
UF-1040 [FIX] Fix some bugs
265
                                               colspan="4" />
1074.5.2 by jf
UF-1336 [IMP] Picking / moves
266
                                        <field name="composition_list_id" invisible="True" />
1074.5.5 by chloups208
uf-1299 uf-1339 merge lp:unifield-wm@1089
267
										<field name="product_qty"
268
											on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"
269
											attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
270
											 />
271
										<field name="product_uom"
1533.8.10 by Quentin THEURET
UF-1763 [IMP] Add the check of rounding of quantity according to UoM in all stock picking and picking processing wizards
272
                                            on_change="onchange_uom(product_uom, product_qty)"
273
                                            string="Unit Of Measure"
1074.5.5 by chloups208
uf-1299 uf-1339 merge lp:unifield-wm@1089
274
											attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
275
											colspan="2"
1421.1.9 by matthieu.choplin at msf
[IMP] utp-129: add domain on product_uom for Incoming Shipment /Internal Moves / Picking / Packing / Delivery Orders / PPL
276
											domain="[('uom_by_product', '=', product_id)]"
1074.5.5 by chloups208
uf-1299 uf-1339 merge lp:unifield-wm@1089
277
											 />
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
278
										<field name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
279
									</group>
280
									<group colspan="2" col="2">
281
										<separator string="Locations" colspan="2" />
809.15.5 by Quentin THEURET
UF-703 [IMP] Remove the OUT and children as source location on OUT and PICK
282
										<field name="location_virtual_id" invisible="1" />
283
                        				<field name="location_output_id" invisible="1" />
1041.1.6 by Quentin THEURET
UF-1040 [FIX] Fix some bugs
284
                        				<!-- # picking_ticket_src is a fields.function to compute the available locations according to the product-->
1074.5.5 by chloups208
uf-1299 uf-1339 merge lp:unifield-wm@1089
285
										<field name="location_id"
1248.4.1 by matthieu.choplin at msf
[uf-1512] add a domain on the location_id and the location_dest_id of the stock move so that we cannot select the same location for both
286
											domain="[('picking_ticket_src', '=', product_id), ('id', '!=', location_dest_id)]"
1074.5.5 by chloups208
uf-1299 uf-1339 merge lp:unifield-wm@1089
287
											context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}"
288
											attrs="{'readonly': [('state', '=', 'assigned')]}"
289
										 	 />
1380.1.3 by jf
UF-1690 UF-1692 [QUICK FIX] picking tickets: domain on dest_id
290
										<field name="location_dest_id" on_change="location_dest_change(location_dest_id, location_id)" domain="[('name', '=', 'Packing')]" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
291
									</group>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
292
									<group colspan="2" col="4">
293
										<separator string="Traceability" colspan="4" />
896.10.7 by Quentin THEURET
UF-1149 [IMP] Picking & moves : Made views consistent
294
										<field name="asset_id" colspan="4" />
896.10.5 by Quentin THEURET
UF-1149 [IMP] Picking Ticket, PPL & moves : Rework form view
295
										<field name="hidden_batch_management_mandatory" invisible="True" />
296
										<field name="hidden_perishable_mandatory" invisible="True" />
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
297
										<field name="prodlot_id"
896.10.5 by Quentin THEURET
UF-1149 [IMP] Picking Ticket, PPL & moves : Rework form view
298
											context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,
299
											'search_default_real': True}"
300
											domain="[('product_id','=?',product_id), ('check_type','=', True)]"
301
											on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="2"
302
											attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}" />
303
										<field name="expired_date" />
304
										<group colspan="4" col="10">
305
											<field name="lot_check" />
306
											<field name="exp_check" />
307
											<field name="kc_check" />
308
											<field name="ssl_check" invisible="True" />
309
											<field name="dg_check" />
310
											<field name="np_check" />
311
										</group>
1074.18.1 by Quentin THEURET
UF-1027 [IMP] Filter reason types on stock.picking and stock.move objects according to the picking type
312
										<field name="reason_type_id"
313
										       domain="[('outgoing_ok', '=', True)]" 
314
										       attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}" widget="selection"/>
896.10.5 by Quentin THEURET
UF-1149 [IMP] Picking Ticket, PPL & moves : Rework form view
315
									</group>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
316
									<group colspan="2" col="2">
317
										<separator string="Dates" colspan="2" />
318
										<field name="create_date" invisible="1"/>
319
										<field name="date" string="Actual Pick Date" />
320
										<field name="date_expected" string="Expected Pick Date" />
321
									</group>
1041.1.1 by jf
[MERGE]
322
	           			            <field name="purchase_line_id"  invisible="1"/>
323
	           			            <field name="move_cross_docking_ok"  invisible="1"/>
324
	           			            <field name="picking_id"  invisible="1"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
325
									<label string="" colspan="4"/>
326
									<field name="state"/>
327
									<group col="4" colspan="2">
328
										<button name="action_cancel" states="assigned" string="Cancel Move" type="object" icon="gtk-cancel"/>
329
										<button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
330
										<button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
331
									</group>
332
								</form>
333
							</field>
1681.11.6 by Quentin THEURET
UF-2073 [FIX] All buttons should be in the line on Picking Tickets
334
							<group col="14" colspan="4">
1681.11.5 by Quentin THEURET
UF-2073 [IMP] Draft picking tickets : Add a field to show state of lines
335
                                <field name="state" readonly="1"/>
336
                                <field name="line_state" readonly="1" attrs="{'invisible': [('state', '!=', 'draft')]}" nolabel="1" />
1775.1.36 by Quentin THEURET
UTP-872 [IMP] Doesn't show the cancel wizard when cancel an Available Picking Ticket
337
                                <field name="flow_type" />
338
                                <group colspan="1" col="1">
339
                                    <button name="call_cancel_wizard" type="object" states="draft" string="_Cancel Picking" icon="gtk-cancel"/>
340
                                    <button name="button_cancel" states="assigned,confirmed" string="_Cancel Picking" icon="gtk-cancel"/>
341
                                </group>
1595.6.4 by Quentin THEURET
UF-1772 [IMP] Picking Ticket : In draft state, doesn't display the 'Confirm' button on form view if there are no draft stock moves
342
                                <field name="has_draft_moves" invisible="1" />
343
                                <button name="action_confirm_moves" states="draft" string="Confirm" type="object" icon="gtk-apply" attrs="{'invisible': [('has_draft_moves', '=', False)]}"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
344
								<button name="action_assign" states="draft,confirmed,assigned" string="Check Availability" type="object" icon="gtk-find"/>
1789.5.1 by Quentin THEURET
UTP-833 [IMP] Picking ticket : Allow the possibility to convert a PT to a standard OUT even if there is some PT not in draft
345
								<button name="convert_to_standard" states="draft,assigned" string="Convert to Simple Out" type="object" icon="gtk-convert" />
1422.15.15 by Quentin THEURET
UF-1616 [IMP] Move the help message from process wizard buttons to the picking doc buttons
346
								<button name="create_picking" states="draft" string="Create Picking..." type="object" icon="gtk-add" help="Non available quantities will not be moved and will remain in the backorder document (unless you “force availability” if you are sure goods are available" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
347
								<button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
348
								<button name="validate_picking" states="assigned" string="Validate Picking..." type="object" icon="gtk-apply"/>
941.3.1 by Quentin THEURET
UF-1113 [IMP] Move the invoice from picking to shipment
349
								<!-- <button name="%(stock.action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','&lt;&gt;','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}"  type="action" icon="terp-gtk-go-back-rtl"/> -->
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
350
							</group>
351
						</page>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
352
						<page string="Additional info">
353
							<field name="auto_picking" invisible="1"/>
354
							<field name="date_done" />
355
							<field name="move_type" invisible="1"/>
356
							<field name="type" invisible="1"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
357
							<field name="company_id" groups="base.group_multi_company" widget="selection"/>
358
						</page>
359
						<page string="Notes">
360
							<field colspan="4" name="note" nolabel="1"/>
361
						</page>
362
					</notebook>
363
				</form>
364
			</field>
365
		</record>
213.2.2 by chloups208
[UF-53][UF-58][UF-63] initial commit
366
		<!-- Changed name to 'Picking Tickets' -->
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
367
		<record id="view_picking_ticket_search" model="ir.ui.view">
368
			<field name="name">picking.ticket.search</field>
369
			<field name="model">stock.picking</field>
370
			<field name="type">search</field>
371
			<field name="arch" type="xml">
372
				<search string="Picking Tickets">
373
					<group col="8" colspan="4">
374
						<filter icon="terp-document-new" name="draft" string="Draft" domain="[('state','=','draft')]" />
375
						<filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" />
376
						<filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" />
1397.4.1 by matthieu.choplin at msf
[IMP] uf-1669 change the Name to 'Closed' of the the button done in the search view of Picking and Packing
377
						<filter icon="terp-dialog-close" name="done" string="Closed" domain="[('state','=','done')]" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
378
						<separator orientation="vertical"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
379
						<filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
380
						<separator orientation="vertical"/>
381
						<filter icon="terp-folder-orange" name="empty" string="Empty" domain="[('overall_qty','=', 0.0)]" />
382
						<filter icon="terp-folder-green" name="not_empty" string="Not Empty" domain="[('overall_qty','!=', 0.0)]" />
383
						<separator orientation="vertical"/>
1016.7.7 by pierre-marie
in Pt and PPL 2 more buttons needed for selecting PT or PPL.
384
						<field name="name"/>
385
						<field name="partner_id2" />
386
						<field name="origin"/>
1681.11.10 by Quentin THEURET
UF-2073 [IMP] Add three filters on Picking Tickets search view to filter on line_state
387
                        <newline />
1074.18.1 by Quentin THEURET
UF-1027 [IMP] Filter reason types on stock.picking and stock.move objects according to the picking type
388
						<field name="reason_type_id" widget="selection" domain="[('outgoing_ok', '=', True)]" />
1016.7.7 by pierre-marie
in Pt and PPL 2 more buttons needed for selecting PT or PPL.
389
						<field name="date" />
390
						<field name="min_date" />
1681.11.10 by Quentin THEURET
UF-2073 [IMP] Add three filters on Picking Tickets search view to filter on line_state
391
                    </group>
392
                    <newline />
393
                    <group string="State of lines" col="8" colspan="4">
394
                        <filter icon="gtk-no" name="line_not_available" string="Not available" domain="[('line_state', '=', 'confirmed')]" />
395
                        <filter icon="gtk-dialog-question" name="line_mixed" string="Partially available" domain="[('line_state', '=', 'mixed')]" />
396
                        <filter icon="gtk-yes" name="line_available" string="Available" domain="[('line_state', '=', 'assigned')]" />
397
                    </group>
1016.7.7 by pierre-marie
in Pt and PPL 2 more buttons needed for selecting PT or PPL.
398
					<newline/>
399
					<group expand="0" string="Group By..." colspan="4" col="8">
400
						<filter string="Origin" name="origin" icon="terp-partner" domain="[]" context="{'group_by':'origin'}"/>
401
						<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id2'}"/>
402
						<separator orientation="vertical" />
403
						<filter string="Reason Type" icon="terp-purchase" domain="[]" context="{'group_by':'reason_type_id'}"/>
404
						<separator orientation="vertical" />
405
						<filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
406
						<separator orientation="vertical" />
407
						<filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
408
						<filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
409
						<separator orientation="vertical" />
1016.2.21 by Quentin THEURET
[FIX] Stock picking search view : Group by Journal didn't work well because the Journal field is not in the tree view
410
                                                <!-- Field stock_journal_id is not in the tree view
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
411
						<filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" />-->
1016.7.7 by pierre-marie
in Pt and PPL 2 more buttons needed for selecting PT or PPL.
412
					</group>
413
				</search>
414
			</field>
415
		</record>
416
417
		<!-- Search 'PT and PPL' -->
418
		<record id="view_pt_ppl_search" model="ir.ui.view">
419
			<field name="name">pt.ppl.search</field>
420
			<field name="model">stock.picking</field>
421
			<field name="type">search</field>
422
			<field name="arch" type="xml">
423
				<search string="Picking Tickets">
424
					<group col="8" colspan="4">
425
						<filter icon="terp-document-new" name="draft" string="Draft" domain="[('state','=','draft')]" />
426
						<filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" />
427
						<filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" />
1397.4.1 by matthieu.choplin at msf
[IMP] uf-1669 change the Name to 'Closed' of the the button done in the search view of Picking and Packing
428
						<filter icon="terp-dialog-close" name="done" string="Closed" domain="[('state','=','done')]" />
1016.7.7 by pierre-marie
in Pt and PPL 2 more buttons needed for selecting PT or PPL.
429
						<separator orientation="vertical"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
430
						<filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" />
1016.7.7 by pierre-marie
in Pt and PPL 2 more buttons needed for selecting PT or PPL.
431
						<separator orientation="vertical"/>
432
						<filter icon="terp-folder-orange" name="empty" string="Empty" domain="[('overall_qty','=', 0.0)]" />
433
						<filter icon="terp-folder-green" name="not_empty" string="Not Empty" domain="[('overall_qty','!=', 0.0)]" />
434
						<separator orientation="vertical"/>
435
436
						<filter icon="" name="pt" string="PT" domain="[('subtype','=', 'picking')]" />
437
						<filter icon="" name="ppl" string="PPL" domain="[('subtype','=', 'ppl')]" />
438
439
						<field name="name"/>
440
						<field name="partner_id2" />
441
						<field name="origin"/>
442
						<newline />
443
						<field name="reason_type_id" widget="selection" />
444
						<field name="date" />
445
						<field name="min_date" />
446
					</group>
447
					<newline/>
448
					<group expand="0" string="Group By..." colspan="4" col="8">
449
						<filter string="Origin" name="origin" icon="terp-partner" domain="[]" context="{'group_by':'origin'}"/>
450
						<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id2'}"/>
451
						<separator orientation="vertical" />
452
						<filter string="Reason Type" icon="terp-purchase" domain="[]" context="{'group_by':'reason_type_id'}"/>
453
						<separator orientation="vertical" />
454
						<filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
455
						<separator orientation="vertical" />
456
						<filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
457
						<filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
458
						<separator orientation="vertical" />
459
					</group>
460
				</search>
461
			</field>
462
		</record>
463
464
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
465
		<!-- Added 'subtype' in domain -->
466
		<record id="action_draft_picking_ticket" model="ir.actions.act_window">
467
			<field name="name">Draft Picking Ticket</field>
468
			<field name="res_model">stock.picking</field>
469
			<field name="type">ir.actions.act_window</field>
470
			<field name="view_type">form</field>
471
			<field name="view_mode">tree,form,calendar</field>
472
			<field name="domain">[('type','=','out'), ('subtype', '=', 'picking'), ('state', '=', 'draft')]</field>
892.5.3 by Quentin THEURET
UF-1152 [IMP] Delivery orders : Rework search and tree view
473
			<field name="context">{'contact_display':'partner_address',
474
								   'picking_type': 'picking_ticket', 
475
				                   'search_default_sale_id':1, 
476
				                   'group_by_no_leaf':0, 
477
				                   'group_by':'origin'}</field>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
478
			<field name="search_view_id" ref="view_picking_ticket_search"/>
479
			<field name="help">This is the list of draft picking tickets.</field>
480
		</record>
481
		<record id="action_draft_picking_ticket_tree" model="ir.actions.act_window.view">
482
			<field eval="1" name="sequence"/>
483
			<field name="view_mode">tree</field>
484
			<field name="view_id" ref="view_picking_ticket_tree"/>
485
			<field name="act_window_id" ref="action_draft_picking_ticket"/>
486
		</record>
487
		<record id="action_draft_picking_ticket_form" model="ir.actions.act_window.view">
488
			<field eval="2" name="sequence"/>
489
			<field name="view_mode">form</field>
490
			<field name="view_id" ref="view_picking_ticket_form"/>
491
			<field name="act_window_id" ref="action_draft_picking_ticket"/>
492
		</record>
493
		<record id="action_draft_picking_ticket_cal" model="ir.actions.act_window.view">
494
			<field eval="3" name="sequence"/>
495
			<field name="view_mode">calendar</field>
496
			<field name="act_window_id" ref="action_draft_picking_ticket"/>
497
		</record>
498
		<!-- <menuitem action="action_draft_picking_ticket" id="menu_action_draft_picking_ticket" parent="stock.menu_stock_warehouse_mgmt" sequence="4"/> -->
499
500
		<!-- Added 'subtype' in domain -->
501
		<record id="action_picking_ticket" model="ir.actions.act_window">
1071.2.4 by matthieu.choplin at msf
rechange the name of the action window as before
502
			<field name="name">Picking Tickets</field>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
503
			<field name="res_model">stock.picking</field>
504
			<field name="type">ir.actions.act_window</field>
505
			<field name="view_type">form</field>
506
			<field name="view_mode">tree,form,calendar</field>
892.12.2 by pierre-marie
UF-1061 - Outgoing delivery documents - First and second part ok. Delete changes about the third part
507
			<field name="domain">[('type','=','out'), ('subtype', '=', 'picking')]</field>
971 by jf
UF-1061 [DEV] Outgoing delivery documents
508
			<field name="context">{'picking_screen':True, 'picking_type': 'picking_ticket', 'test':True, 'search_default_not_empty':1}</field>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
509
			<!-- <field name="context">{'picking_screen':True, 'test':True, 'group_by':'origin', 'search_default_not_empty':1}</field> -->
510
			<field name="search_view_id" ref="view_picking_ticket_search"/>
511
			<field name="help">This is the list of all picking tickets (draft and confirmed) that have to be prepared from sales orders.</field>
512
		</record>
513
		<record id="action_picking_ticket_tree" model="ir.actions.act_window.view">
514
			<field eval="1" name="sequence"/>
515
			<field name="view_mode">tree</field>
516
			<field name="view_id" ref="view_picking_ticket_tree"/>
517
			<field name="act_window_id" ref="action_picking_ticket"/>
518
		</record>
519
		<record id="action_picking_ticket_form" model="ir.actions.act_window.view">
520
			<field eval="2" name="sequence"/>
521
			<field name="view_mode">form</field>
522
			<field name="view_id" ref="view_picking_ticket_form"/>
523
			<field name="act_window_id" ref="action_picking_ticket"/>
524
		</record>
525
		<record id="action_picking_ticket_cal" model="ir.actions.act_window.view">
526
			<field eval="3" name="sequence"/>
527
			<field name="view_mode">calendar</field>
528
			<field name="act_window_id" ref="action_picking_ticket"/>
529
		</record>
530
		<menuitem action="action_picking_ticket" id="menu_action_picking_ticket" parent="menu_warehouse_deliveries" sequence="4"/>
531
		<!-- Changed name to 'PPL' -->
213.2.5 by chloups208
[UF-53][UF-58][UF-63] start ppl
532
		<record id="view_ppl_tree" model="ir.ui.view">
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
533
			<field name="name">ppl.tree</field>
534
			<field name="model">stock.picking</field>
535
			<field name="type">tree</field>
536
			<field name="arch" type="xml">
537
				<tree hide_new_button="1" hide_delete_button="1" colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and min_date &lt; current_date" string="Pre-Packing Lists">
538
					<field name="name"/>
953.1.3 by pierre-marie
Correction bug
539
                    <field name="description_ppl"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
540
					<field name="partner_id2"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
541
					<field name="backorder_id" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
542
					<field name="origin"/>
543
					<field name="reason_type_id" />
544
					<field name="date"/>
545
					<field name="min_date" string="Expected Pack Date" />
546
					<field name="state"/>
547
					<button name="ppl" states="assigned" string="Pack..." type="object" icon="terp-accessories-archiver"/>
548
				</tree>
549
			</field>
550
		</record>
551
		<!-- Remove 'Process Later' (draft_force_assign) and 'Process Now' (draft_validate) buttons -->
552
		<!-- 'Check Availability' button available for 'draft' state -->
553
		<!-- Changed name to 'PPL' -->
554
		<!-- Add 'Flow Type' drop down list -->
555
		<!-- TREE -->
556
		<!-- Remove 'Scrap Products' button -->
557
		<!-- Remove 'Scrapped' -->
558
		<!-- Remove 'Split in production lots' -->
559
		<!-- Remove 'Put in current pack' -->
560
		<!-- Remove 'Put in a new pack' -->
561
		<!-- Remove 'Process' at stock.move level -->
562
		<!-- FORM -->
563
		<!-- Remove 'Scrap' button -->
564
		<!-- Remove 'New Pack' -->
565
		<!-- Remove 'tracking_id' -->
566
		<!-- Remove 'Split' -->
567
		<!-- Remove 'Process' button -->
568
		<!-- Added Asset Id to move tree and form -->
569
		<record id="view_ppl_form" model="ir.ui.view">
570
			<field name="name">ppl.form</field>
571
			<field name="model">stock.picking</field>
572
			<field name="type">form</field>
573
			<!-- without priority 'view_picking_form' from stock is used -->
574
			<!-- but then other form view also use it... -->
575
			<!-- <field eval="11" name="priority"/> -->
576
			<field name="arch" type="xml">
577
				<form hide_new_button="1" hide_duplicate_button="1" hide_delete_button="1" string="Pre-Packing List">
578
					<group col="6" colspan="4">
579
						<group colspan="4" col="4">
580
							<field name="name" readonly="1"/>
581
							<field name="origin" readonly="1"/>
582
							<field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)"
781.5.1 by Quentin THEURET
[FIX] Made the partner not mandatory on internal picking
583
                                                        required="1"
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
584
							attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
585
							<field name="address_id" colspan="2" context="{'contact_display':'partner'}" attrs="{'required': [('subtype', 'in', ('picking', 'ppl'))]}" />
896.10.7 by Quentin THEURET
UF-1149 [IMP] Picking & moves : Made views consistent
586
							<field name="invoice_state" invisible="1" />
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
587
							<field name="backorder_id" readonly="1" />
1074.18.7 by Quentin THEURET
UF-1027 [IMP] Made reason type readonly if the picking comes from wkf
588
							<field name="reason_type_id" widget="selection" domain="[('outgoing_ok', '=', True)]" attrs="{'readonly': [('from_wkf', '=', True)]}"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
589
							<field name="num_of_packs" />
892.5.31 by Quentin THEURET
UF-1152 [FIX] Volume information should be added inside the PPL document(before weight)
590
							<field name="total_volume" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
591
							<field name="total_weight" />
592
						</group>
593
						<group colspan="2" col="2">
896.10.1 by Quentin THEURET
UF-1149 [IMP] Picking doc : Rework picking doc views
594
							<field name="date" readonly="1" />
1249.11.12 by Matthieu Dietrich
UF-1525: [FIX] reverted the domain on stock.journal
595
							<field name="stock_journal_id" widget="selection" invisible="True" />
815.11.2 by chloups208
uf-942 readonly of picking date for done and cancel state
596
							<field name="min_date" string="Expected Pack Date" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
597
							<field name="sale_id" invisible="True" />
598
							<field name="subtype" invisible="True" />
599
							<field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking')]}" />
600
							<field name='ppl_customize_label' required="True" />
953.1.4 by pierre-marie
Correction
601
							<field name="description_ppl"  />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
602
						</group>
953.1.3 by pierre-marie
Correction bug
603
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
604
					</group>
605
					<notebook colspan="4">
606
						<page string="Products">
1193.18.2 by Matthieu Dietrich
UF-1449: [FIX] other file with default_get on move lines
607
							<field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines and [move_lines[-1]] or [], 'address_out_id': address_id}"  attrs="{'readonly': [ ('from_wkf', '=', True),('state','in',['draft','confirmed','assigned']) ]}" >
1394.9.26 by Quentin THEURET
UF-1403 [IMP] Product deactivation : Add error on document lines if the product in line is inactive
608
								<tree string="Stock Moves" hide_new_button="True" colors="red: inactive_product==True">
1396.2.38 by Quentin THEURET
UF-1044 [IMP] Add some test before checking restrictions
609
                                    <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}" />
614.2.67 by chloups208
uf-844 merge trunk
610
									<field name="composition_list_id" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
611
									<field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
612
									<field name="product_uom" string="UoM"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
613
									<field name="product_uos" />
896.10.1 by Quentin THEURET
UF-1149 [IMP] Picking doc : Rework picking doc views
614
									<field name="asset_id" />
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
615
									<field name="prodlot_id" string="Batch Number" />
213.2.39 by chloups208
[UF-390]integration problems corrected
616
									<field name="expired_date" />
617
									<field name="kc_dg" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
618
									<field name="location_id" string="Src. Loc" />
619
									<field name="location_dest_id" string="Dest. Loc" />
620
									<field name="qty_per_pack" />
621
									<field name="from_pack" />
622
									<field name="to_pack" />
623
									<field name="date" string="Actual Pack Date" />
624
									<field name="state"/>
878.4.9 by pierre-marie
Cancel Availability + Force Availability on each line in INT OUT PPL
625
626
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
627
									<field name="lot_check" />
628
									<field name="exp_check" />
629
									<field name="kc_check" />
630
									<field name="ssl_check" invisible="True" />
631
									<field name="dg_check" />
632
									<field name="np_check" />
1394.9.26 by Quentin THEURET
UF-1403 [IMP] Product deactivation : Add error on document lines if the product in line is inactive
633
									<field name="inactive_product" invisible="1" />
634
                    				<field name="inactive_error" attrs="{'invisible': [('inactive_product', '=', False)]}" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
635
								</tree>
636
								<form string="Stock Moves">
637
									<group colspan="2" col="4">
638
										<separator colspan="4" string="Move Information"/>
639
										<field name="name" invisible="1" colspan="4" />
1396.2.21 by Quentin THEURET
UF-1044 [IMP] Filter the product in documents
640
                                        <field name="product_id" 
641
                                               context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': True, 'available_for_restriction': 'picking', 'search_default_not_restricted': 1}" 
642
                                               on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id,parent.type,purchase_line_id,True)" 
643
                                               colspan="4" />
614.2.31 by chloups208
uf-844 linking composition list in picking process wizards + stock moves
644
                                        <field name="composition_list_id" invisible="True" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
645
										<field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
1421.1.9 by matthieu.choplin at msf
[IMP] utp-129: add domain on product_uom for Incoming Shipment /Internal Moves / Picking / Packing / Delivery Orders / PPL
646
										<field name="product_uom" string="Unit Of Measure" colspan="2" domain="[('uom_by_product', '=', product_id)]"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
647
										<field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" />
648
										<field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
649
										<field name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
650
									</group>
651
									<group colspan="2" col="2">
652
										<separator string="Locations" colspan="2" />
1248.4.1 by matthieu.choplin at msf
[uf-1512] add a domain on the location_id and the location_dest_id of the stock move so that we cannot select the same location for both
653
										<field name="location_id" domain="[ ('quarantine_location', '=', False),('check_prod_loc','=',[product_id,'out']), ('check_cd','in',[purchase_line_id,move_cross_docking_ok]), ('id', '!=', location_dest_id)]" readonly="1"
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
654
										context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}" />
1248.4.1 by matthieu.choplin at msf
[uf-1512] add a domain on the location_id and the location_dest_id of the stock move so that we cannot select the same location for both
655
										<field name="location_dest_id" domain="[('usage','&lt;&gt;','view'), ('id', '!=', location_id)]" on_change="location_dest_change(location_dest_id, location_id)" readonly="1" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
656
									</group>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
657
									<group colspan="2" col="4">
658
										<separator string="Traceability" colspan="4" />
896.10.7 by Quentin THEURET
UF-1149 [IMP] Picking & moves : Made views consistent
659
										<field name="asset_id" colspan="4" />
896.10.5 by Quentin THEURET
UF-1149 [IMP] Picking Ticket, PPL & moves : Rework form view
660
										<field name="hidden_batch_management_mandatory" invisible="True" />
661
										<field name="hidden_perishable_mandatory" invisible="True" />
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
662
										<field name="prodlot_id"
896.10.5 by Quentin THEURET
UF-1149 [IMP] Picking Ticket, PPL & moves : Rework form view
663
										context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,
664
										'search_default_real': True}"
665
										domain="[('product_id','=?',product_id), ('check_type','=', True)]"
666
										on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="2"
667
										attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}" />
668
										<field name="expired_date" />
669
										<group colspan="4" col="10">
670
											<field name="lot_check" />
671
											<field name="exp_check" />
672
											<field name="kc_check" />
673
											<field name="ssl_check" invisible="True" />
674
											<field name="dg_check" />
675
											<field name="np_check" />
676
										</group>
896.10.7 by Quentin THEURET
UF-1149 [IMP] Picking & moves : Made views consistent
677
										<field name="reason_type_id"  attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}" widget="selection"/>
896.10.5 by Quentin THEURET
UF-1149 [IMP] Picking Ticket, PPL & moves : Rework form view
678
									</group>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
679
									<group colspan="2" col="2">
680
										<separator string="Dates" colspan="2" />
681
										<field name="create_date" invisible="1"/>
682
										<field name="date" string="Actual Pack Date" />
683
										<field name="date_expected" string="Expected Pack Date" />
684
									</group>
1041.1.1 by jf
[MERGE]
685
	           			            <field name="purchase_line_id"  invisible="1"/>
686
	           			            <field name="move_cross_docking_ok"  invisible="1"/>
687
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
688
									<label string="" colspan="4"/>
689
									<field name="state"/>
690
									<group col="4" colspan="2">
691
										<button name="action_cancel" states="assigned" string="Cancel Move" type="object" icon="gtk-cancel"/>
692
										<button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
693
										<button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
694
									</group>
695
								</form>
696
							</field>
697
							<group col="12" colspan="4">
698
								<field name="state" readonly="1"/>
699
								<field name="flow_type" />
1994.1.27 by Quentin THEURET
REF-27 [IMP] Rewrite the return Packs to stock (from shipment) and the return to stock (from PPL) wizards
700
								<button name="ppl_return" string="Return Products..." states="confirmed,assigned" type="object" icon="gtk-undo"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
701
								<button name="action_assign" states="" string="Check Availability" type="object" icon="gtk-find"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
702
								<button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
703
								<button name="ppl" states="assigned" string="Pack..." type="object" icon="terp-accessories-archiver"/>
941.3.1 by Quentin THEURET
UF-1113 [IMP] Move the invoice from picking to shipment
704
								<!-- <button name="%(stock.action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','&lt;&gt;','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}"  type="action" icon="terp-gtk-go-back-rtl"/> -->
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
705
							</group>
706
						</page>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
707
						<page string="Additional info">
708
							<field name="auto_picking" invisible="1" />
709
							<field name="date_done" />
710
							<field name="move_type" invisible="1"/>
711
							<field name="type" invisible="1"/>
896.10.5 by Quentin THEURET
UF-1149 [IMP] Picking Ticket, PPL & moves : Rework form view
712
							<field name="company_id" groups="base.group_multi_company" widget="selection" invisible="1"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
713
						</page>
714
						<page string="Notes">
715
							<field colspan="4" name="note" nolabel="1"/>
878.4.6 by pierre-marie
UF-1060 - General picking documents modifications - End of second and third part
716
							<field  name="from_wkf" invisible="1"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
717
						</page>
718
					</notebook>
719
				</form>
720
			</field>
721
		</record>
213.2.5 by chloups208
[UF-53][UF-58][UF-63] start ppl
722
		<!-- Changed name to 'PPL' -->
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
723
		<record id="view_ppl_search" model="ir.ui.view">
724
			<field name="name">ppl.search</field>
725
			<field name="model">stock.picking</field>
726
			<field name="type">search</field>
727
			<field name="arch" type="xml">
728
				<search string="Pre-Packing List">
729
					<group col="8" colspan="4">
730
						<filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Assigned Delivery Orders"/>
1397.4.1 by matthieu.choplin at msf
[IMP] uf-1669 change the Name to 'Closed' of the the button done in the search view of Picking and Packing
731
						<filter icon="terp-dialog-close" name="done" string="Closed" domain="[('state','=','done')]" help="Delivery orders already processed"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
732
						<separator orientation="vertical"/>
733
						<field name="name"/>
734
						<field name="partner_id2" />
735
						<field name="origin"/>
736
						<field name="reason_type_id" widget="selection" />
737
						<field name="company_id" widget="selection" groups="base.group_multi_company"/>
892.5.4 by Quentin THEURET
UF-1152 [IMP] Picking tickets and Pre-Packing list : Rework search and tree view
738
						<field name="date" />
739
						<field name="min_date" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
740
					</group>
741
					<newline/>
742
					<group expand="0" string="Group By..." colspan="4" col="8">
743
						<filter string="Origin" name="origin" icon="terp-partner" domain="[]" context="{'group_by':'origin'}"/>
744
						<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id2'}"/>
745
						<separator orientation="vertical" />
746
						<filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
747
						<separator orientation="vertical" />
748
						<filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
749
						<filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
750
						<separator orientation="vertical" />
751
						<filter string="Reason Type" icon="terp-purchase" domain="[]" context="{'group_by':'reason_type_id'}"/>
752
					</group>
753
				</search>
754
			</field>
755
		</record>
213.2.5 by chloups208
[UF-53][UF-58][UF-63] start ppl
756
		<!-- Added 'subtype' in domain -->
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
757
		<record id="action_ppl" model="ir.actions.act_window">
1071.2.4 by matthieu.choplin at msf
rechange the name of the action window as before
758
			<field name="name">Pre-Packing Lists</field>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
759
			<field name="res_model">stock.picking</field>
760
			<field name="type">ir.actions.act_window</field>
761
			<field name="view_type">form</field>
762
			<field name="view_mode">tree,form,calendar</field>
763
			<field name="domain">[('type','=','out'), ('subtype', '=', 'ppl')]</field>
892.5.4 by Quentin THEURET
UF-1152 [IMP] Picking tickets and Pre-Packing list : Rework search and tree view
764
			<field name="context">{'contact_display': 'partner_address', 'ppl_screen':True,
765
								   'picking_type': 'picking_ticket', 
766
								   'search_default_available':1}</field>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
767
			<!-- <field name="context">{'contact_display': 'partner_address', 'ppl_screen':True, 'group_by':'origin', 'search_default_available':1}</field> -->
768
			<field name="search_view_id" ref="view_ppl_search"/>
769
			<field name="help">This is the list of all ppl that have been picked.</field>
770
		</record>
771
		<record id="action_ppl_tree" model="ir.actions.act_window.view">
772
			<field eval="1" name="sequence"/>
773
			<field name="view_mode">tree</field>
774
			<field name="view_id" ref="view_ppl_tree"/>
775
			<field name="act_window_id" ref="action_ppl"/>
776
		</record>
777
		<record id="action_ppl_form" model="ir.actions.act_window.view">
778
			<field eval="2" name="sequence"/>
779
			<field name="view_mode">form</field>
780
			<field name="view_id" ref="view_ppl_form"/>
781
			<field name="act_window_id" ref="action_ppl"/>
782
		</record>
783
		<record id="action_ppl_cal" model="ir.actions.act_window.view">
784
			<field eval="3" name="sequence"/>
785
			<field name="view_mode">calendar</field>
786
			<field name="act_window_id" ref="action_ppl"/>
787
		</record>
892.12.2 by pierre-marie
UF-1061 - Outgoing delivery documents - First and second part ok. Delete changes about the third part
788
		<menuitem action="action_ppl" id="menu_action_ppl" parent="menu_warehouse_deliveries" sequence="5" />
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
789
790
		<record id="view_pt_ppl_form" model="ir.ui.view">
791
			<field name="name">pt.ppl.form</field>
792
			<field name="model">stock.picking</field>
793
			<field name="type">form</field>
794
			<field name="arch" type="xml">
1016.7.3 by pierre-marie
Rename PT and PPL by Shipment preparation
795
				<form hide_new_button="1" hide_duplicate_button="1" hide_delete_button="1" string="Shipment preparation">
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
796
					<group col="6" colspan="4">
797
						<group colspan="4" col="4">
798
							<field name="name" readonly="1"/>
799
							<field name="origin" readonly="1"/>
800
							<field name="partner_id2"  readonly="1" on_change="on_change_partner(partner_id2, address_id)"
801
                                                        required="1"
802
							 />
803
							<field name="address_id" colspan="2" context="{'contact_display':'partner'}"  readonly="1"/>
804
							<field name="invoice_state"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
805
							<field name="backorder_id" readonly="1" />
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
806
							<field name="num_of_packs" attrs="{'invisible': [('subtype', 'in', ('picking'))]}"/>
807
							<field name="total_weight" attrs="{'invisible': [('subtype', 'in', ('picking'))]}"/>
808
						</group>
809
						<group colspan="2" col="2">
810
							<field name="date" readonly="1"/>
1249.11.12 by Matthieu Dietrich
UF-1525: [FIX] reverted the domain on stock.journal
811
							<field name="stock_journal_id" widget="selection" invisible="True" />
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
812
							<field name="min_date" readonly="1" string="Expected Pack Date"  />
813
							<field name="reason_type_id" widget="selection" readonly="1"/>
814
							<field name="sale_id" invisible="True" />
815
							<field name="subtype" invisible="True" />
816
							<field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking')]}" />
817
							<field name='ppl_customize_label' required="True" readonly="1" attrs="{'invisible': [('subtype', 'in', ('picking'))]}"/>
818
						</group>
819
					</group>
820
					<notebook colspan="4">
821
						<page string="Products">
1193.18.2 by Matthieu Dietrich
UF-1449: [FIX] other file with default_get on move lines
822
							<field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines and [move_lines[-1]] or [], 'address_out_id': address_id}" readonly="1">
1394.9.26 by Quentin THEURET
UF-1403 [IMP] Product deactivation : Add error on document lines if the product in line is inactive
823
								<tree string="Stock Moves" colors="red: inactive_product==True">
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
824
									<field name="product_id"/>
825
									<field name="asset_id" />
826
									<field name="composition_list_id" />
827
									<field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
828
									<field name="product_uom" string="UoM"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
829
									<field name="product_uos" />
830
									<field name="prodlot_id" string="Batch Number" />
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
831
									<field name="expired_date" />
832
									<field name="kc_dg" />
833
									<field name="location_id" string="Src. Loc" />
834
									<field name="location_dest_id" string="Dest. Loc" />
835
									<field name="qty_per_pack" />
836
									<field name="from_pack" />
837
									<field name="to_pack" />
838
									<field name="date" string="Actual Pack Date" />
839
									<field name="state"/>
840
									<field name="lot_check" />
841
									<field name="exp_check" />
842
									<field name="kc_check" />
843
									<field name="ssl_check" invisible="True" />
844
									<field name="dg_check" />
845
									<field name="np_check" />
1394.9.26 by Quentin THEURET
UF-1403 [IMP] Product deactivation : Add error on document lines if the product in line is inactive
846
									<field name="inactive_product" invisible="1" />
847
                    				<field name="inactive_error" attrs="{'invisible': [('inactive_product', '=', False)]}" />
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
848
								</tree>
849
							</field>
850
							<group col="12" colspan="4">
851
								<field name="state" readonly="1"/>
852
								<field name="flow_type" />
853
							</group>
854
						</page>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
855
						<page string="Additional info">
856
							<field name="auto_picking" readonly="1"/>
857
							<field name="date_done" readonly="1"/>
858
							<field name="move_type" readonly="1"/>
859
							<field name="type" readonly="1"/>
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
860
							<field name="company_id" groups="base.group_multi_company" widget="selection" readonly="1"/>
861
						</page>
862
						<page string="Notes">
863
							<field colspan="4" name="note" nolabel="1" readonly="1"/>
864
						</page>
865
					</notebook>
866
				</form>
867
			</field>
868
		</record>
869
		<record id="view_pt_ppl_tree" model="ir.ui.view">
870
			<field name="name">pt.ppl.tree</field>
871
			<field name="model">stock.picking</field>
872
			<field name="type">tree</field>
873
			<field name="arch" type="xml">
1016.7.3 by pierre-marie
Rename PT and PPL by Shipment preparation
874
				<tree hide_new_button="1" hide_delete_button="1" colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and min_date &lt; current_date" string="Shipment preparation">
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
875
					<field name="name"/>
876
					<field name="partner_id2" />
877
					<field name="sale_id" invisible="True" />
878
					<field name="reason_type_id" />
879
					<field name="origin"/>
880
					<field name="order_category"/>
881
					<field name="overall_qty" invisible="True" />
882
					<field name="date"/>
883
					<field name="min_date" string="Expected Pick Date" />
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
884
					<field name="backorder_id" />
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
885
					<field name="invoice_state"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
886
					<field name="stock_journal_id" widget="selection"/>
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
887
					<field name="state"/>
888
				</tree>
889
			</field>
890
		</record>
891
		<record id="action_pt_ppl" model="ir.actions.act_window">
1016.7.3 by pierre-marie
Rename PT and PPL by Shipment preparation
892
			<field name="name">Shipment preparation</field>
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
893
			<field name="res_model">stock.picking</field>
894
			<field name="type">ir.actions.act_window</field>
895
			<field name="view_type">form</field> 
896
			<field name="view_mode">tree,form</field>
897
			<field name="domain">[('type','=','out'), ( 'subtype', 'in', ['picking','ppl'] )]</field>
898
			<field name="context">{'group_by':'origin,state' }</field>
1016.7.7 by pierre-marie
in Pt and PPL 2 more buttons needed for selecting PT or PPL.
899
			<field name="search_view_id" ref="view_pt_ppl_search"/>
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
900
		</record>
901
		<record id="action_pt_ppl_tree" model="ir.actions.act_window.view">
902
			<field eval="1" name="sequence"/>
903
			<field name="view_mode">tree</field>
904
			<field name="view_id" ref="view_pt_ppl_tree"/>
905
			<field name="act_window_id" ref="action_pt_ppl"/>
906
		</record>
907
		<record id="action_pt_ppl_form" model="ir.actions.act_window.view">
908
			<field eval="2" name="sequence"/>
909
			<field name="view_mode">form</field>
910
			<field name="view_id" ref="view_pt_ppl_form"/>
911
			<field name="act_window_id" ref="action_pt_ppl"/>
912
		</record>
1042.3.2 by chloups208
uf-1266 delivery menus
913
		<!-- <menuitem action="action_pt_ppl" id="menu_action_pt_ppl" parent="menu_warehouse_deliveries" sequence="6" /> -->
892.12.3 by pierre-marie
UF-1061 - Outgoing delivery documents - Third part ok
914
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
915
		<!-- Changed name to 'Packing' -->
213.2.8 by chloups208
[UF-53][UF-58][UF-63] wizard logic refactoring
916
		<record id="view_packing_tree" model="ir.ui.view">
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
917
			<field name="name">packing.tree</field>
918
			<field name="model">stock.picking</field>
919
			<field name="type">tree</field>
920
			<field name="arch" type="xml">
1681.11.4 by Quentin THEURET
UF-2073 [IMP] Picking Tickets : should be in red if expected date is in the past
921
				<tree colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and min_date &lt; current_date" string="Packing">
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
922
					<field name="name"/>
923
					<field name="partner_id2"/>
924
					<field name="origin"/>
925
					<field name="reason_type_id" />
926
					<field name="date"/>
927
					<field name="min_date"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
928
					<field name="backorder_id" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
929
					<field name="invoice_state"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
930
					<field name="stock_journal_id" widget="selection"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
931
					<field name="state"/>
932
				</tree>
933
			</field>
934
		</record>
935
		<!-- Remove 'Process Later' (draft_force_assign) and 'Process Now' (draft_validate) buttons -->
936
		<!-- 'Check Availability' button available for 'draft' state -->
937
		<!-- Changed name to 'Packing' -->
938
		<!-- Add 'Flow Type' drop down list -->
939
		<!-- TREE -->
940
		<!-- Remove 'Scrap Products' button -->
941
		<!-- Remove 'Scrapped' -->
942
		<!-- Remove 'Split in production lots' -->
943
		<!-- Remove 'Put in current pack' -->
944
		<!-- Remove 'Put in a new pack' -->
945
		<!-- Remove 'Process' at stock.move level -->
946
		<!-- FORM -->
947
		<!-- Remove 'Scrap' button -->
948
		<!-- Remove 'New Pack' -->
949
		<!-- Remove 'tracking_id' -->
950
		<!-- Remove 'Split' -->
951
		<!-- Remove 'Process' button -->
952
		<!-- Added Asset Id to move tree and form -->
953
		<record id="view_packing_form" model="ir.ui.view">
954
			<field name="name">packing.form</field>
955
			<field name="model">stock.picking</field>
956
			<field name="type">form</field>
957
			<!-- without priority 'view_picking_form' from stock is used -->
958
			<!-- but then other form view also use it... -->
959
			<!-- <field eval="11" name="priority"/> -->
960
			<field name="arch" type="xml">
961
				<form string="Packing">
962
					<group col="6" colspan="4">
963
						<group colspan="4" col="4">
964
							<field name="name" readonly="1"/>
965
							<field name="origin" readonly="1"/>
966
							<field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)"
781.5.1 by Quentin THEURET
[FIX] Made the partner not mandatory on internal picking
967
                                                        required="1"
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
968
							attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
969
							<field name="address_id" colspan="2" context="{'contact_display':'partner'}" />
970
							<field name="invoice_state"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
971
							<field name="backorder_id" readonly="1" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
972
							<field name="shipment_id" readonly="True" />
973
						</group>
974
						<group colspan="2" col="2">
896.10.1 by Quentin THEURET
UF-1149 [IMP] Picking doc : Rework picking doc views
975
							<field name="date" readonly="1" />
815.11.2 by chloups208
uf-942 readonly of picking date for done and cancel state
976
							<field name="min_date" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}" />
1249.11.12 by Matthieu Dietrich
UF-1525: [FIX] reverted the domain on stock.journal
977
							<field name="stock_journal_id" widget="selection" invisible="True" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
978
							<field name="reason_type_id" widget="selection"/>
979
							<field name="sale_id" invisible="True" />
980
							<field name="subtype" invisible="True" />
981
							<field name="warehouse_id" attrs="{'readonly': ['|', '|', ('sale_id', '!=', False), ('state', '!=', 'draft'), ('subtype', '!=', 'picking')]}" />
982
						</group>
983
					</group>
984
					<notebook colspan="4">
985
						<page string="Products">
1193.18.2 by Matthieu Dietrich
UF-1449: [FIX] other file with default_get on move lines
986
							<field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines and [move_lines[-1]] or [], 'address_out_id': address_id}">
1394.9.26 by Quentin THEURET
UF-1403 [IMP] Product deactivation : Add error on document lines if the product in line is inactive
987
								<tree string="Stock Moves" colors="red: inactive_product==True">
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
988
									<field name="product_id"/>
614.2.67 by chloups208
uf-844 merge trunk
989
									<field name="composition_list_id" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
990
									<field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
991
									<field name="product_uom" string="UoM"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
992
									<field name="product_uos" />
896.10.1 by Quentin THEURET
UF-1149 [IMP] Picking doc : Rework picking doc views
993
									<field name="asset_id" />
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
994
									<field name="prodlot_id" string="Batch Number" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
995
									<field name="expired_date" />
213.2.39 by chloups208
[UF-390]integration problems corrected
996
									<field name="kc_dg" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
997
									<field name="location_id" string="Src. Loc" />
998
									<field name="location_dest_id" string="Dest. Loc" />
999
									<field name="qty_per_pack" />
1000
									<field name="from_pack" />
1001
									<field name="to_pack" />
1002
									<field name="num_of_packs" />
1003
									<field name="total_amount" />
1004
									<field name="currency_id" />
1005
									<field name="date"/>
1006
									<field name="state"/>
1007
									<field name="lot_check" />
1008
									<field name="exp_check" />
1009
									<field name="kc_check" />
1010
									<field name="ssl_check" invisible="True" />
1011
									<field name="dg_check" />
1012
									<field name="np_check" />
1394.9.26 by Quentin THEURET
UF-1403 [IMP] Product deactivation : Add error on document lines if the product in line is inactive
1013
									<field name="inactive_product" invisible="1" />
1014
                    				<field name="inactive_error" attrs="{'invisible': [('inactive_product', '=', False)]}" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1015
								</tree>
1016
								<form string="Stock Moves">
1017
									<group colspan="2" col="4">
1018
										<separator colspan="4" string="Move Information"/>
1019
										<field name="name" invisible="1" colspan="4" />
1349.3.1 by Quentin THEURET
UF-1653 [FIX] Stock move : Display child when no stock location choosen
1020
                                        <field name="product_id" context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': True}" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1021
										<field name="asset_id" />
614.2.31 by chloups208
uf-844 linking composition list in picking process wizards + stock moves
1022
                                        <field name="composition_list_id" invisible="True" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1023
										<field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
1024
										<field name="product_uom" string="Unit Of Measure" colspan="4" />
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
1025
										<field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" />
1026
										<field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
1027
										<field name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1028
									</group>
1029
									<group colspan="2" col="2">
1030
										<separator string="Locations" colspan="2" />
1248.4.1 by matthieu.choplin at msf
[uf-1512] add a domain on the location_id and the location_dest_id of the stock move so that we cannot select the same location for both
1031
										<field name="location_id" domain="[('quarantine_location', '=', False),('check_prod_loc','=',[product_id,'out']), ('id', '!=', location_dest_id)]"
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1032
										context="{'specific_rules_tree_view': True, 'prodlot_id': prodlot_id, 'product_id': product_id, 'compute_child': False}" />
1248.4.1 by matthieu.choplin at msf
[uf-1512] add a domain on the location_id and the location_dest_id of the stock move so that we cannot select the same location for both
1033
										<field name="location_dest_id" domain="[('usage','&lt;&gt;','view'),('check_prod_loc','=',[product_id,'out']), ('id', '!=', location_id)]" on_change="location_dest_change(location_dest_id, location_id)" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1034
									</group>
1035
									<group colspan="2" col="2">
1036
										<separator string="Dates" colspan="2" />
1037
										<field name="create_date" invisible="1"/>
1038
										<field name="date"/>
1039
										<field name="date_expected"/>
1040
									</group>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
1041
									<group colspan="2" col="4">
1042
										<separator string="Traceability" colspan="4" />
759 by jf
[IMP] reason_type: widget selection
1043
										<field name="reason_type_id"  attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}" widget="selection"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
1044
										<field name="prodlot_id"
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1045
										context="{'location_id':location_id, 'product_id':product_id, 'hidden_perishable_mandatory': hidden_perishable_mandatory,
1046
										'search_default_real': True}"
1047
										domain="[('product_id','=?',product_id), ('check_type','=', True)]"
1048
										on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"
1049
										attrs="{'readonly': [('hidden_batch_management_mandatory','=',False), ('hidden_perishable_mandatory','=',False)]}" />
1050
										<field name="hidden_batch_management_mandatory" invisible="True" />
1051
										<field name="hidden_perishable_mandatory" invisible="True" />
359.1.2 by chloups208
uf-506 - stock moves screens prodlot
1052
										<field name="expired_date" />
607.1.1 by chloups208
uf-850 boxes modified
1053
										<field name="lot_check" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1054
										<field name="exp_check" />
1055
										<field name="kc_check" />
1056
										<field name="ssl_check" invisible="True" />
1057
										<field name="dg_check" />
1058
										<field name="np_check" />
1059
									</group>
1060
									<label string="" colspan="4"/>
1061
									<field name="state"/>
1062
									<group col="4" colspan="2">
1063
										<button name="action_cancel" states="assigned" string="Cancel Move" type="object" icon="gtk-cancel"/>
1064
										<button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
1065
										<button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
1066
									</group>
1067
								</form>
1068
							</field>
1069
							<group col="12" colspan="4">
1070
								<field name="state" readonly="1"/>
1071
								<field name="flow_type" />
1072
								<button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel Picking" icon="gtk-cancel"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
1073
								<button name="action_assign" states="draft,confirmed" string="Check Availability" type="object" icon="gtk-find"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1074
								<button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
1075
								<button name="packing" states="assigned" string="Pack..." type="object" icon="gtk-go-forward"/>
1076
								<button name="%(stock.act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
941.3.1 by Quentin THEURET
UF-1113 [IMP] Move the invoice from picking to shipment
1077
								<!-- <button name="%(stock.action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','&lt;&gt;','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}"  type="action" icon="terp-gtk-go-back-rtl"/> -->
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1078
							</group>
1079
						</page>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
1080
						<page string="Additional info">
1081
							<field name="auto_picking" />
1082
							<field name="date_done" />
1083
							<field name="move_type" />
1084
							<field name="type" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1085
							<field name="company_id" groups="base.group_multi_company" widget="selection"/>
1086
						</page>
1087
						<page string="Notes">
1088
							<field colspan="4" name="note" nolabel="1"/>
1089
						</page>
1090
					</notebook>
1091
				</form>
1092
			</field>
1093
		</record>
213.2.8 by chloups208
[UF-53][UF-58][UF-63] wizard logic refactoring
1094
		<!-- Changed name to 'Packing' -->
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1095
		<record id="view_packing_search" model="ir.ui.view">
1096
			<field name="name">packing.search</field>
1097
			<field name="model">stock.picking</field>
1098
			<field name="type">search</field>
1099
			<field name="arch" type="xml">
1100
				<search string="Packing">
1101
					<group col="8" colspan="4">
1102
						<filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Assigned Delivery Orders"/>
1103
						<filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Delivery Orders"/>
1104
						<filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Delivery orders already processed"/>
1105
						<separator orientation="vertical"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
1106
						<filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1107
						<separator orientation="vertical"/>
1108
						<filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Delivery orders to invoice"/>
1109
						<separator orientation="vertical"/>
1110
						<field name="name"/>
1111
						<field name="partner_id2" />
1112
						<field name="origin"/>
759 by jf
[IMP] reason_type: widget selection
1113
						<field name="reason_type_id" widget="selection"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
1114
						<field name="stock_journal_id" widget="selection"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1115
						<field name="company_id" widget="selection" groups="base.group_multi_company"/>
1116
					</group>
1117
					<newline/>
1118
					<group expand="0" string="Group By..." colspan="4" col="8">
1119
						<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id2'}"/>
1120
						<separator orientation="vertical" />
1121
						<filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1122
						<separator orientation="vertical" />
1123
						<filter string="Reason Type" icon="terp-purchase" domain="[]" context="{'group_by':'reason_type_id'}"/>
1124
						<separator orientation="vertical" />
1125
						<filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
1126
						<filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
1127
						<separator orientation="vertical" />
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
1128
						<filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1129
					</group>
1130
				</search>
1131
			</field>
1132
		</record>
213.2.8 by chloups208
[UF-53][UF-58][UF-63] wizard logic refactoring
1133
		<!-- Added 'subtype' in domain -->
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1134
		<record id="action_packing" model="ir.actions.act_window">
1135
			<field name="name">Packing (debug)</field>
1136
			<field name="res_model">stock.picking</field>
1137
			<field name="type">ir.actions.act_window</field>
1138
			<field name="view_type">form</field>
1139
			<field name="view_mode">tree,form,calendar</field>
1140
			<field name="domain">[('type','=','out'), ('subtype', '=', 'packing')]</field>
1141
			<field name="context">{'contact_display': 'partner_address'}</field>
1142
			<field name="search_view_id" ref="view_packing_search"/>
1143
			<field name="help">This is the list of all packing that have been picked.</field>
1144
		</record>
1145
		<record id="action_packing_tree" model="ir.actions.act_window.view">
1146
			<field eval="1" name="sequence"/>
1147
			<field name="view_mode">tree</field>
1148
			<field name="view_id" ref="view_packing_tree"/>
1149
			<field name="act_window_id" ref="action_packing"/>
1150
		</record>
1151
		<record id="action_packing_form" model="ir.actions.act_window.view">
1152
			<field eval="2" name="sequence"/>
1153
			<field name="view_mode">form</field>
1154
			<field name="view_id" ref="view_packing_form"/>
1155
			<field name="act_window_id" ref="action_packing"/>
1156
		</record>
1157
		<record id="action_packing_cal" model="ir.actions.act_window.view">
1158
			<field eval="3" name="sequence"/>
1159
			<field name="view_mode">calendar</field>
1160
			<field name="act_window_id" ref="action_packing"/>
1161
		</record>
1994.1.36 by Quentin THEURET
REF-27 [ADD] Add an XML file forgotten in the last commit
1162
		<!--<menuitem action="action_packing" id="menu_action_packing" parent="stock.menu_stock_warehouse_mgmt" sequence="6"/>-->
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1163
213.2.12 by chloups208
[UF-53][UF-58][UF-63] packing we believe in you
1164
		<!-- Shipment -->
1165
		<record id="view_shipment_tree" model="ir.ui.view">
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1166
			<field name="name">shipment.tree</field>
1167
			<field name="model">shipment</field>
1168
			<field name="type">tree</field>
1169
			<field name="arch" type="xml">
1681.11.14 by Quentin THEURET
UF-2073 [FIX] Shipment in draft and too late should be displayed in red
1170
                <tree string="Shipment" hide_new_button="1" hide_delete_button="1" colors="blue:state in ['draft'] and (shipment_expected_date &gt; current_date or shipment_expected_date == current_date);grey:state in ['cancel'];red:state not in ['cancel', 'done'] and shipment_expected_date &lt; current_date;black:state in ['done'];green: state in ['delivered']">
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1171
					<field name="name"/>
1172
					<field name="partner_id2"/>
1173
					<field name="address_id"/>
892.5.5 by Quentin THEURET
UF-1152 [IMP] Packing : Rework search and tree view
1174
					<field name="num_of_packs" />
1016.2.7 by Quentin THEURET
[FIX] Shipment : Total volume should be AFTER total weight
1175
					<field name="total_weight" />
892.5.5 by Quentin THEURET
UF-1152 [IMP] Packing : Rework search and tree view
1176
					<field name="total_volume" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1177
					<field name="total_amount" />
1178
					<field name="currency_id" />
1179
					<field name="date" />
1180
					<field name="shipment_expected_date" />
1181
					<field name="state"/>
1182
					<button name="create_shipment" states="draft" string="Create Shipment..." type="object" icon="gtk-add"/>
1183
					<button name="ship" states="packed" string="Ship" type="object" icon="gtk-redo"/>
1184
					<button name="validate" states="shipped" string="Validate" type="object" icon="gtk-apply"/>
1185
				</tree>
1186
			</field>
1187
		</record>
1188
		<record id="view_shipment_form" model="ir.ui.view">
1189
			<field name="name">shipment.form</field>
1190
			<field name="model">shipment</field>
1191
			<field name="type">form</field>
1192
			<field name="arch" type="xml">
1193
				<form string="Shipment" hide_new_button="1" hide_duplicate_button="1" hide_delete_button="1">
1194
					<group col="6" colspan="4">
1195
						<group colspan="4" col="4">
1196
							<field name="name" readonly="1"/>
1197
							<field name="date" readonly="True" />
1198
							<field name="shipment_actual_date" />
1199
							<field name="shipment_expected_date" attrs="{'readonly': [('state', 'not in', ('draft', 'packed'))]}" />
1200
							<field name="transport_type" />
1201
							<field name="backshipment_id" readonly="True" />
1202
							<field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)"
781.5.1 by Quentin THEURET
[FIX] Made the partner not mandatory on internal picking
1203
                                                                required="1"
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1204
								attrs="{'readonly': [('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])]}" />
1205
							<field name="address_id" context="{'contact_display':'partner'}" />
1206
						</group>
1207
					</group>
1208
					<notebook colspan="4">
1209
						<page string="Pack Families">
1210
							<field colspan="4" name="pack_family_memory_ids" nolabel="1" widget="one2many_list" readonly="True">
1211
								<tree string="Pack Families">
1212
									<field name="sale_order_id"/>
1213
									<field name="ppl_id" />
1016.7.12 by pierre-marie
Add the PPL Description in the SHIP lines
1214
                                    <field name="description_ppl" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1215
									<field name="from_pack"/>
1216
									<field name="to_pack"/>
1217
									<field name="num_of_packs" />
1218
									<field name="pack_type"/>
892.5.31 by Quentin THEURET
UF-1152 [FIX] Volume information should be added inside the PPL document(before weight)
1219
									<field name="total_volume" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1220
									<field name="weight"/>
1221
									<field name="total_weight" />
1222
									<field name="amount" />
1223
									<field name="total_amount" />
1224
									<field name="currency_id" />
1225
									<field name="location_id" />
1226
									<field name="state" />
1227
								</tree>
1228
								<form>
1229
									<field name="sale_order_id"/>
1230
									<field name="ppl_id" />
953.1.3 by pierre-marie
Correction bug
1231
                                    <field name="description_ppl" /><newline />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1232
									<field name="from_pack"/>
1233
									<field name="to_pack"/>
1234
									<field name="num_of_packs" />
1235
									<field name="pack_type"/>
892.5.31 by Quentin THEURET
UF-1152 [FIX] Volume information should be added inside the PPL document(before weight)
1236
									<field name="total_volume" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1237
									<field name="weight"/>
1238
									<field name="total_weight" />
1239
									<field name="amount" />
1240
									<field name="total_amount" />
1241
									<field name="currency_id" />
1242
									<field name="location_id" />
1243
									<field name="location_dest_id" />
1244
									<field name="state" />
1219.1.1 by Quentin THEURET
UTP-210 [IMP] Disable the opening of a new window when user clicks on move lines into pack family form from the shipment
1245
									<field name="move_lines" nolabel="True" colspan="4" mode="tree" readonly="True">
1394.9.26 by Quentin THEURET
UF-1403 [IMP] Product deactivation : Add error on document lines if the product in line is inactive
1246
										<tree colors="red: inactive_product==True">
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1247
											<field name="name" />
1248
											<field name="origin" />
1249
											<field name="product_id" />
1250
											<field name="prodlot_id" />
1251
											<field name="expired_date" />
1252
											<field name="product_qty" />
1253
											<field name="product_uom" />
1254
											<field name="location_id" />
1255
											<field name="location_dest_id" />
1256
											<field name="state" />
1394.9.26 by Quentin THEURET
UF-1403 [IMP] Product deactivation : Add error on document lines if the product in line is inactive
1257
											<field name="inactive_product" invisible="1" />
1258
                    						<field name="inactive_error" attrs="{'invisible': [('inactive_product', '=', False)]}" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1259
										</tree>
1260
									</field>
1261
								</form>
1262
							</field>
1263
							<group col="12" colspan="4">
1264
								<field name="state" readonly="1"/>
1265
								<button name="return_packs" states="draft" string="Return Packs to Stock..." type="object" icon="gtk-undo"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
1266
								<button name="create_shipment" states="draft" string="Create Shipment..." type="object" icon="gtk-add" />
1267
								<button name="action_cancel" states="packed" string="Cancel Shipment" type="object" icon="gtk-cancel" />
1268
								<button name="ship" states="packed" string="Ship" type="object" icon="gtk-redo" />
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1269
								<button name="return_packs_from_shipment" states="shipped" string="Return Packs from Shipment..." type="object" icon="gtk-undo"/>
1140.1.1 by jf
Removed groups= in xml (except for group_multi_company and group_no_one)
1270
								<button name="validate" states="shipped" string="Validate" type="object" icon="gtk-apply" />
1409.1.3 by matthieu.choplin at msf
[IMP]uf-1329: add the attribute confirm on the button 'set_delivered'
1271
								<button name="set_delivered" icon="gtk-apply" type="object" string="Validate Delivery" attrs="{'invisible': [('state', '!=', 'done')]}" 
1272
								confirm="Synchronization engine should confirm the delivery at the project reception, are you sure?"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1273
							</group>
1274
						</page>
1595.17.40 by matthieu.choplin at msf
[IMP] utp-489: hide the tab additional items in the shipment form view
1275
						<page string="Additional Items" invisible="1">
1595.17.13 by matthieu.choplin at msf
[utp-489] the additional items of the shipment remains editable
1276
						    <field colspan="4" name="additional_items_ids" nolabel="1" widget="one2many_list" >
1595.17.3 by matthieu.choplin at msf
[IMP] utp-489: enable to add additional items
1277
						    </field>
1595.17.1 by matthieu.choplin at msf
[IMP] utp-489: add additional items object as a o2m for the shipment
1278
						</page>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1279
						<page string="Document Information">
1280
							<field name="cargo_manifest_reference" />
1281
							<field name="date_of_departure" />
1282
							<field name="planned_date_of_arrival" />
1283
							<field name="transit_via" />
1284
							<field name="registration" />
1285
							<field name="driver_name" />
1286
						</page>
1287
						<page string="Transport Information">
1288
							<group col="2" colspan="1">
1289
								<separator string="Shipper" colspan="2" />
1290
								<field name="shipper_name" />
1291
								<field name="shipper_address" />
1292
								<field name="shipper_phone" />
1293
								<field name="shipper_email" />
1294
								<field name="shipper_other" />
1295
								<field name="shipper_date" />
1296
							</group>
1297
							<group col="2" colspan="1">
1298
								<separator string="Carrier" colspan="2" />
1299
								<field name="carrier_name" />
1300
								<field name="carrier_address" />
1301
								<field name="carrier_phone" />
1302
								<field name="carrier_email" />
1303
								<field name="carrier_other" />
1304
								<field name="carrier_date" />
1305
							</group>
1306
							<group col="2" colspan="1">
1307
								<separator string="Consignee" colspan="2" />
1308
								<field name="consignee_name" />
1309
								<field name="consignee_address" />
1310
								<field name="consignee_phone" />
1311
								<field name="consignee_email" />
1312
								<field name="consignee_other" />
1313
								<field name="consignee_date" />
1314
							</group>
1315
						</page>
1316
					</notebook>
1317
				</form>
1318
			</field>
1319
		</record>
1595.17.3 by matthieu.choplin at msf
[IMP] utp-489: enable to add additional items
1320
1595.17.6 by matthieu.choplin at msf
[IMP] utp-489: enable to put additional items on ppl
1321
        <record id="shipment_additionalitems_tree" model="ir.ui.view">
1322
            <field name="name">shipment.additionalitems.tree</field>
1323
            <field name="model">shipment.additionalitems</field>
1324
            <field name="type">tree</field>
1325
            <field name="arch" type="xml">
1326
                    <tree string="Additional Items" editable="bottom">
1327
                        <field name="name"/>
1328
                        <field name="quantity" />
1329
                        <field name="uom" />
1330
                        <field name="comment"/>
1331
                        <field name="volume"/>
1332
                        <field name="weight" />
1595.17.9 by matthieu.choplin at msf
[IMP] utp-489: additional items enable on ppl and shipment
1333
                        <field name="picking_id" />
1595.17.6 by matthieu.choplin at msf
[IMP] utp-489: enable to put additional items on ppl
1334
                    </tree>
1335
            </field>
1336
        </record>
1337
213.2.12 by chloups208
[UF-53][UF-58][UF-63] packing we believe in you
1338
		<!-- Changed name to 'Shipment' -->
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1339
		<record id="view_shipment_search" model="ir.ui.view">
1340
			<field name="name">shipment.search</field>
1341
			<field name="model">shipment</field>
1342
			<field name="type">search</field>
1343
			<field name="arch" type="xml">
1344
				<search string="Shipment">
1345
					<group col="8" colspan="4">
1346
						<filter icon="terp-document-new" name="draft" string="Draft" domain="[('state','=','draft')]" />
1347
						<filter icon="terp-check" name="shipped" string="Shipped" domain="[('state','=','shipped')]" />
1348
						<filter icon="terp-dialog-close" name="closed" string="Closed" domain="[('state','=','done')]" />
1349
						<filter icon="gtk-yes" name="delivered" string="Delivered" domain="[('state','=','delivered')]" />
1350
						<separator orientation="vertical"/>
1351
						<filter icon="terp-folder-orange" name="empty" string="Empty" domain="[('num_of_packs','=', 0)]" />
1352
						<filter icon="terp-folder-green" name="not_empty" string="Not Empty" domain="[('num_of_packs','!=', 0)]" />
1353
						<separator orientation="vertical"/>
1354
						<field name="name"/>
1355
						<field name="partner_id2" />
1356
					</group>
1357
					<newline/>
1358
					<group expand="0" string="Group By..." colspan="4" col="8">
1359
						<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id2'}"/>
1360
						<separator orientation="vertical" />
1361
						<filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1362
					</group>
1363
				</search>
1364
			</field>
1365
		</record>
213.2.12 by chloups208
[UF-53][UF-58][UF-63] packing we believe in you
1366
		<!-- Added 'subtype' in domain -->
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1367
		<record id="action_shipment" model="ir.actions.act_window">
1071.2.4 by matthieu.choplin at msf
rechange the name of the action window as before
1368
			<field name="name">Shipment Lists</field>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1369
			<field name="res_model">shipment</field>
1370
			<field name="type">ir.actions.act_window</field>
1371
			<field name="view_type">form</field>
1372
			<field name="view_mode">tree,form,calendar</field>
1373
			<field name="domain">[]</field>
1042.3.2 by chloups208
uf-1266 delivery menus
1374
			<field name="context">{'packing_screen': True, 'search_default_not_empty':1, 'search_default_partner': 1}</field>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1375
			<field name="search_view_id" ref="view_shipment_search"/>
892.9.2 by pierre-marie
UF-1143 - Shiping ppt
1376
			<field name="help">This is the list of all shipment lists that have been picked. The shipment lists are regrouped by address.</field>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1377
		</record>
1016.7.13 by pierre-marie
Reports on shipment are back
1378
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1379
		<record id="action_shipment_tree" model="ir.actions.act_window.view">
1380
			<field eval="1" name="sequence"/>
1381
			<field name="view_mode">tree</field>
1382
			<field name="view_id" ref="view_shipment_tree"/>
1383
			<field name="act_window_id" ref="action_shipment"/>
1384
		</record>
1385
		<record id="action_shipment_form" model="ir.actions.act_window.view">
1386
			<field eval="2" name="sequence"/>
1387
			<field name="view_mode">form</field>
1388
			<field name="view_id" ref="view_shipment_form"/>
1389
			<field name="act_window_id" ref="action_shipment"/>
1390
		</record>
1391
		<record id="action_shipment_cal" model="ir.actions.act_window.view">
1392
			<field eval="3" name="sequence"/>
1393
			<field name="view_mode">calendar</field>
1394
			<field name="act_window_id" ref="action_shipment"/>
1395
		</record>
1396
		<menuitem action="action_shipment" id="menu_action_shipment" parent="menu_warehouse_deliveries" sequence="6"/>
1422.16.4 by duy.vo at msf
UF-1617: Added a new view for closed ship lines
1397
1398
1399
		<!-- Closed Shipment lines -->
1400
1401
        <record id="view_shipped_closed_tree" model="ir.ui.view">
1402
            <field name="name">Closed Shipped Lines</field>
1403
            <field name="model">stock.move</field>
1404
            <field name="type">tree</field>
1405
            <field name="arch" type="xml">
1406
                <tree string="Closed shipped lines" editable="top" noteditable="1" hide_delete_button="1" hide_new_button="1">
1407
                    <field name="origin"/>
1422.16.6 by duy.vo at msf
UF-1617: Fixed the view Closed Shipment Lines
1408
                    <field name="picking_id" string="Pack"/>
1409
                    <field name="line_number"/>
1422.16.4 by duy.vo at msf
UF-1617: Added a new view for closed ship lines
1410
                    <field name="product_id"/>
1411
                    <field name="product_qty" />
1412
                    <field name="product_uom" string="UoM"/>
1413
                    <field name="prodlot_id"/>
1422.16.6 by duy.vo at msf
UF-1617: Fixed the view Closed Shipment Lines
1414
                    <field name="expired_date"/>
1415
                    <field name="asset_id"/>
1416
                    <field name="partner_id"/>
1422.16.4 by duy.vo at msf
UF-1617: Added a new view for closed ship lines
1417
                    <field name="date"/>
1418
                </tree>
1419
            </field>
1420
        </record>
1421
1422
		<record id="view_closed_shipment_search" model="ir.ui.view">
1423
			<field name="name">Closed Shipment Lists</field>
1424
			<field name="model">stock.move</field>
1425
			<field name="type">search</field>
1426
			<field name="arch" type="xml">
1427
				<search string="Shipment">
1428
                    <field name="name"/>
1422.16.6 by duy.vo at msf
UF-1617: Fixed the view Closed Shipment Lines
1429
                    <field name="picking_id" string="Pack" domain="[('already_shipped','=',True), ('shipment_id','!=',False)]"/>
1422.16.4 by duy.vo at msf
UF-1617: Added a new view for closed ship lines
1430
                    <field name="origin"/>
1431
                    <field name="prodlot_id"/>
1422.16.6 by duy.vo at msf
UF-1617: Fixed the view Closed Shipment Lines
1432
                    <field name="asset_id"/>
1422.16.4 by duy.vo at msf
UF-1617: Added a new view for closed ship lines
1433
				</search>
1434
			</field>
1435
		</record>
1436
1437
		<!-- Added 'subtype' in domain -->
1438
		<record id="action_closed_shipment" model="ir.actions.act_window">
1439
			<field name="name">Closed Shipment Lists</field>
1440
			<field name="res_model">stock.move</field>
1441
			<field name="type">ir.actions.act_window</field>
1442
			<field name="view_type">form</field>
1443
			<field name="search_view_id" ref="view_closed_shipment_search"/>
1444
	        <field name="view_id" ref="view_shipped_closed_tree" />
1422.16.6 by duy.vo at msf
UF-1617: Fixed the view Closed Shipment Lines
1445
	        <field name="domain">[('state', '=', 'done'), ('origin', '!=', False), ('picking_id', '!=', False),('picking_id.already_shipped','=',True), ('picking_id.shipment_id','!=',False), ('product_qty','>', 0), ('location_dest_id.name','!=','Dispatch')]</field>
1422.16.4 by duy.vo at msf
UF-1617: Added a new view for closed ship lines
1446
			<field name="help">This is the list of all shipment lines with product information</field>
1447
		</record>
1448
1449
		<menuitem action="action_closed_shipment" id="menu_action_closed_shipment" parent="menu_warehouse_deliveries" sequence="7"/>
633.6.6 by Quentin THEURET
UF-855 [IMP] Add 3 addresses on OUT/PICK
1450
1451
	</data>
309.2.4 by Quentin THEURET
[IMP] Added fields and columns for reason type move on picking/move views
1452
</openerp>