@@ -33,7 +33,7 @@ def setUpClass(cls):
33
33
"picking_type_id" : picking_type_out .id ,
34
34
"location_id" : stock_location .id ,
35
35
"location_dest_id" : customer_location .id ,
36
- "move_lines " : [
36
+ "move_ids " : [
37
37
(
38
38
0 ,
39
39
0 ,
@@ -58,19 +58,12 @@ def test_mass_action(self):
58
58
wiz_confirm .confirm = True
59
59
wiz_confirm .mass_action ()
60
60
self .assertEqual (self .picking .state , "confirmed" )
61
- # We test checking availability
62
- wiz_check = wiz .with_context (check_availability = True ).create (
63
- {"picking_ids" : [(4 , self .picking .id )]}
64
- )
65
- wiz_check .confirm = True
66
- wiz_check .mass_action ()
67
- self .assertEqual (self .picking .state , "assigned" )
68
61
# We test transferring picking
69
62
wiz_tranfer = wiz .with_context (transfer = True ).create (
70
63
{"picking_ids" : [(4 , self .picking .id )]}
71
64
)
72
65
wiz_tranfer .confirm = True
73
- for line in self .picking .move_lines :
66
+ for line in self .picking .move_ids :
74
67
line .quantity_done = line .product_uom_qty
75
68
wiz_tranfer .mass_action ()
76
69
self .assertEqual (self .picking .state , "done" )
@@ -103,6 +96,6 @@ def test_mass_action_backorder(self):
103
96
{"picking_ids" : [(4 , self .picking .id )], "confirm" : True , "transfer" : True }
104
97
)
105
98
self .picking .action_assign ()
106
- self .picking .move_lines [0 ].quantity_done = 30
99
+ self .picking .move_ids [0 ].quantity_done = 30
107
100
res = wiz_tranfer .mass_action ()
108
101
self .assertEqual (res ["res_model" ], "stock.backorder.confirmation" )
0 commit comments