@@ -21,8 +21,8 @@ def setUpClass(cls):
21
21
cls .env = cls .env (context = dict (cls .env .context , tracking_disable = True ))
22
22
23
23
Product = cls .env ["product.product" ]
24
- Picking = cls .env ["stock.picking" ]
25
- Move = cls .env ["stock.move" ]
24
+ cls . Picking = cls .env ["stock.picking" ]
25
+ cls . Move = cls .env ["stock.move" ]
26
26
Carrier = cls .env ["delivery.carrier" ]
27
27
ShippingLabel = cls .env ["shipping.label" ]
28
28
@@ -43,7 +43,7 @@ def setUpClass(cls):
43
43
}
44
44
)
45
45
46
- cls .picking = Picking .create (
46
+ cls .picking = cls . Picking .create (
47
47
{
48
48
"partner_id" : cls .env .ref ("base.res_partner_12" ).id ,
49
49
"picking_type_id" : cls .env .ref ("stock.picking_type_out" ).id ,
@@ -55,7 +55,7 @@ def setUpClass(cls):
55
55
cls .product_a = Product .create ({"name" : "Product A" })
56
56
cls .product_b = Product .create ({"name" : "Product B" })
57
57
58
- cls .move1 = Move .create (
58
+ cls .move1 = cls . Move .create (
59
59
{
60
60
"name" : "Move A" ,
61
61
"picking_id" : cls .picking .id ,
@@ -67,7 +67,7 @@ def setUpClass(cls):
67
67
}
68
68
)
69
69
70
- cls .move2 = Move .create (
70
+ cls .move2 = cls . Move .create (
71
71
{
72
72
"name" : "a second move" ,
73
73
"product_id" : cls .product_b .id ,
@@ -106,7 +106,6 @@ def check_label_content(self, b64_datas):
106
106
tags = self .find_div_class (node , div_class )
107
107
self .assertEqual (len (tags ), 1 )
108
108
109
- # @patch_label_file_type
110
109
def test_001_print_default_label (self ):
111
110
# assign picking to generate 'stock.move.line'
112
111
self .picking .send_to_shipper ()
@@ -117,7 +116,6 @@ def test_001_print_default_label(self):
117
116
self .assertEqual (label .file_type , "html" )
118
117
self .check_label_content (label .datas )
119
118
120
- # @patch_label_file_type
121
119
def test_002_print_default_label_selected_packs (self ):
122
120
# create packs
123
121
self .move1 .move_line_ids [0 ].write ({"quantity" : 3 , "picked" : True })
0 commit comments