1+ from odoo .addons .base .tests .common import BaseCommon
12from odoo .tests import tagged
2- from odoo .tests .common import TransactionCase
33
44
55@tagged ("post_install" , "-at_install" )
6- class TestPurchasePricelistDisable (TransactionCase ):
6+ class TestPurchasePricelistDisable (BaseCommon ):
77 @classmethod
88 def setUpClass (cls ):
99 super ().setUpClass ()
@@ -53,7 +53,7 @@ def setUpClass(cls):
5353 "product_qty" : 1.0 ,
5454 "price_unit" : 100.0 ,
5555 "name" : "Test Line" ,
56- "product_uom " : cls .product .uom_id .id ,
56+ "product_uom_id " : cls .product .uom_id .id ,
5757 }
5858 )
5959
@@ -69,7 +69,7 @@ def setUpClass(cls):
6969 "product_qty" : 1.0 ,
7070 "price_unit" : 100.0 ,
7171 "name" : "Test Line" ,
72- "product_uom " : cls .product .uom_id .id ,
72+ "product_uom_id " : cls .product .uom_id .id ,
7373 }
7474 )
7575
@@ -87,15 +87,15 @@ def setUpClass(cls):
8787 "product_qty" : 1.0 ,
8888 "price_unit" : 100.0 ,
8989 "name" : "Test Line 1" ,
90- "product_uom " : cls .product .uom_id .id ,
90+ "product_uom_id " : cls .product .uom_id .id ,
9191 },
9292 {
9393 "order_id" : cls .po_multi1 .id ,
9494 "product_id" : cls .product2 .id ,
9595 "product_qty" : 2.0 ,
9696 "price_unit" : 150.0 ,
9797 "name" : "Test Line 2" ,
98- "product_uom " : cls .product2 .uom_id .id ,
98+ "product_uom_id " : cls .product2 .uom_id .id ,
9999 },
100100 ]
101101 )
@@ -113,15 +113,15 @@ def setUpClass(cls):
113113 "product_qty" : 1.0 ,
114114 "price_unit" : 100.0 ,
115115 "name" : "Test Line 1" ,
116- "product_uom " : cls .product .uom_id .id ,
116+ "product_uom_id " : cls .product .uom_id .id ,
117117 },
118118 {
119119 "order_id" : cls .po_multi2 .id ,
120120 "product_id" : cls .product2 .id ,
121121 "product_qty" : 2.0 ,
122122 "price_unit" : 150.0 ,
123123 "name" : "Test Line 2" ,
124- "product_uom " : cls .product2 .uom_id .id ,
124+ "product_uom_id " : cls .product2 .uom_id .id ,
125125 },
126126 ]
127127 )
0 commit comments