File tree 2 files changed +6
-3
lines changed
purchase_order_secondary_unit
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 3
3
{
4
4
"name" : "Purchase Order Secondary Unit" ,
5
5
"summary" : "Purchase product in a secondary unit" ,
6
- "version" : "15.0.1.0.0 " ,
6
+ "version" : "15.0.1.0.1 " ,
7
7
"development_status" : "Beta" ,
8
8
"category" : "Purchase" ,
9
9
"website" : "https://github.com/OCA/purchase-workflow" ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ def setUpClass(cls):
52
52
po .onchange_partner_id ()
53
53
cls .order = cls .purchase_order_obj .create (po ._convert_to_write (po ._cache ))
54
54
55
- def test_purchase_order (self ):
55
+ def test_purchase_order_01 (self ):
56
56
purchase_order = Form (self .order )
57
57
with purchase_order .order_line .edit (0 ) as line :
58
58
# Test _compute product_qty
@@ -63,8 +63,11 @@ def test_purchase_order(self):
63
63
line .secondary_uom_qty = 3500.0
64
64
line .product_uom = self .product_uom_gram
65
65
self .assertEqual (line .secondary_uom_qty , 3.5 )
66
- # Test default purchase order line secondary uom
66
+
67
+ def test_purchase_order_02 (self ):
68
+ purchase_order = Form (self .order )
67
69
with purchase_order .order_line .new () as line_new :
70
+ # Test default purchase order line secondary uom
68
71
line_new .product_id = self .product
69
72
self .assertEqual (line_new .secondary_uom_id , self .secondary_unit )
70
73
self .assertEqual (line_new .secondary_uom_qty , 1.0 )
You can’t perform that action at this time.
0 commit comments