@@ -8,7 +8,11 @@ def setUp(self):
88 super ().setUp ()
99
1010 self .maintenance_warehouse = self .env ["stock.warehouse" ].create (
11+ << << << < HEAD
1112 {"name" : "Test warehouse" , "code" : "TEST" ,}
13+ == == == =
14+ {"name" : "Test warehouse" , "code" : "TEST" }
15+ >> >> >> > 9 a9e9cf ([MIG ] maintenance_stock : Migration to 13.0 )
1216 )
1317
1418 self .product1 = self .env ["product.product" ].create (
@@ -107,6 +111,16 @@ def test_picking(self):
107111 self .assertEqual (len (self .equipment_1 .stock_picking_ids ), 0 )
108112
109113 qty_done = 5.0
114+ << << << < HEAD
115+ == == == =
116+ move_line_data = {
117+ "product_id" : self .product1 .id ,
118+ "product_uom_id" : self .env .ref ("uom.product_uom_unit" ).id ,
119+ "qty_done" : qty_done ,
120+ "location_id" : self .maintenance_warehouse .lot_stock_id .id ,
121+ "location_dest_id" : self .maintenance_warehouse .wh_cons_loc_id .id ,
122+ }
123+ >> >> >> > 9 a9e9cf ([MIG ] maintenance_stock : Migration to 13.0 )
110124 picking = self .env ["stock.picking" ].create (
111125 {
112126 "maintenance_request_id" : self .request_1 .id ,
@@ -125,21 +139,7 @@ def test_picking(self):
125139 "picking_type_id" : self .maintenance_warehouse .cons_type_id .id ,
126140 "location_id" : self .maintenance_warehouse .lot_stock_id .id ,
127141 "location_dest_id" : self .maintenance_warehouse .wh_cons_loc_id .id ,
128- "move_line_ids" : [
129- (
130- 0 ,
131- 0 ,
132- {
133- "product_id" : self .product1 .id ,
134- "product_uom_id" : self .env .ref (
135- "uom.product_uom_unit"
136- ).id ,
137- "qty_done" : qty_done ,
138- "location_id" : self .maintenance_warehouse .lot_stock_id .id ,
139- "location_dest_id" : self .maintenance_warehouse .wh_cons_loc_id .id ,
140- },
141- )
142- ],
142+ "move_line_ids" : [(0 , 0 , move_line_data )],
143143 },
144144 )
145145 ],
0 commit comments