@@ -14,7 +14,8 @@ def setUpClass(cls):
14
14
cls .product_test = cls .env ["product.product" ].create (
15
15
{
16
16
"name" : "Product TEST" ,
17
- "type" : "product" ,
17
+ "type" : "consu" ,
18
+ "is_storable" : True ,
18
19
"weight" : 2 ,
19
20
"uom_id" : cls .uom_kg .id ,
20
21
"uom_po_id" : cls .uom_kg .id ,
@@ -67,7 +68,7 @@ def test_strict_weight_not_set(self):
67
68
"product_id" : self .product_test .id ,
68
69
"product_uom_id" : self .uom_kg .id ,
69
70
"picking_id" : picking_ship .id ,
70
- "qty_done " : 6 ,
71
+ "quantity " : 6 ,
71
72
"location_id" : self .stock_location .id ,
72
73
"location_dest_id" : self .customer_location .id ,
73
74
}
@@ -113,7 +114,7 @@ def test_strict_weight_set_ok(self):
113
114
"product_id" : self .product_test .id ,
114
115
"product_uom_id" : self .uom_kg .id ,
115
116
"picking_id" : picking_ship .id ,
116
- "qty_done " : 4 ,
117
+ "quantity " : 4 ,
117
118
"location_id" : self .stock_location .id ,
118
119
"location_dest_id" : self .customer_location .id ,
119
120
}
@@ -158,7 +159,7 @@ def test_strict_weight_set_error(self):
158
159
"product_id" : self .product_test .id ,
159
160
"product_uom_id" : self .uom_kg .id ,
160
161
"picking_id" : picking_ship .id ,
161
- "qty_done " : 6 ,
162
+ "quantity " : 6 ,
162
163
"location_id" : self .stock_location .id ,
163
164
"location_dest_id" : self .customer_location .id ,
164
165
}
@@ -207,7 +208,7 @@ def test_strict_weight_set_max_weightb_not_set(self):
207
208
"product_id" : self .product_test .id ,
208
209
"product_uom_id" : self .uom_kg .id ,
209
210
"picking_id" : picking_ship .id ,
210
- "qty_done " : 6 ,
211
+ "quantity " : 6 ,
211
212
"location_id" : self .stock_location .id ,
212
213
"location_dest_id" : self .customer_location .id ,
213
214
}
0 commit comments