@@ -90,12 +90,12 @@ def test_01_purchase_stock_manual_currency(self):
90
90
self .assertEqual (len (self .p_order .picking_ids ), 1 )
91
91
stock_picking = self .p_order .picking_ids
92
92
93
- self .assertTrue (stock_picking .move_lines )
94
- self .assertEqual (len (stock_picking .move_lines ), 1 )
95
- stock_move = stock_picking .move_lines
93
+ self .assertTrue (stock_picking .move_ids )
94
+ self .assertEqual (len (stock_picking .move_ids ), 1 )
95
+ stock_move = stock_picking .move_ids
96
96
price = stock_move ._get_price_unit ()
97
97
self .assertEqual (round (price , 2 ), 7.21 )
98
- stock_picking .move_lines .write ({"quantity_done " : 10 })
98
+ stock_picking .move_ids .write ({"quantity " : 10 })
99
99
stock_picking .button_validate ()
100
100
101
101
self .assertTrue (stock_move .stock_valuation_layer_ids )
@@ -121,12 +121,12 @@ def test_02_purchase_stock_manual_currency(self):
121
121
self .assertEqual (len (self .p_order .picking_ids ), 1 )
122
122
stock_picking = self .p_order .picking_ids
123
123
124
- self .assertTrue (stock_picking .move_lines )
125
- self .assertEqual (len (stock_picking .move_lines ), 1 )
126
- stock_move = stock_picking .move_lines
124
+ self .assertTrue (stock_picking .move_ids )
125
+ self .assertEqual (len (stock_picking .move_ids ), 1 )
126
+ stock_move = stock_picking .move_ids
127
127
price = stock_move ._get_price_unit ()
128
128
self .assertEqual (round (price , 2 ), 4.00 )
129
- stock_picking .move_lines .write ({"quantity_done " : 10 })
129
+ stock_picking .move_ids .write ({"quantity " : 10 })
130
130
stock_picking .button_validate ()
131
131
132
132
self .assertTrue (stock_move .stock_valuation_layer_ids )
@@ -151,12 +151,12 @@ def test_03_purchase_stock_manual_currency(self):
151
151
self .assertEqual (len (self .p_order .picking_ids ), 1 )
152
152
stock_picking = self .p_order .picking_ids
153
153
154
- self .assertTrue (stock_picking .move_lines )
155
- self .assertEqual (len (stock_picking .move_lines ), 1 )
156
- stock_move = stock_picking .move_lines
154
+ self .assertTrue (stock_picking .move_ids )
155
+ self .assertEqual (len (stock_picking .move_ids ), 1 )
156
+ stock_move = stock_picking .move_ids
157
157
price = stock_move ._get_price_unit ()
158
158
self .assertEqual (round (price , 2 ), 8.00 )
159
- stock_picking .move_lines .write ({"quantity_done " : 10 })
159
+ stock_picking .move_ids .write ({"quantity " : 10 })
160
160
stock_picking .button_validate ()
161
161
162
162
self .assertTrue (stock_move .stock_valuation_layer_ids )
0 commit comments