Skip to content

Commit 7f00dde

Browse files
author
Nedas Žilinskas
committed
[MIG] product_supplierinfo_disable_autocreation: Migration to 19.0
1 parent 759dee7 commit 7f00dde

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

product_supplierinfo_disable_autocreation/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
33
{
44
"name": "Product Supplierinfo Disable Autocreation",
5-
"version": "18.0.1.0.0",
5+
"version": "19.0.1.0.0",
66
"category": "Purchase",
77
"summary": "Add option to disable automatic creation of pricelists for suppliers",
88
"author": "Sygel, Odoo Community Association (OCA)",

product_supplierinfo_disable_autocreation/tests/test_purchase_pricelist_disable.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
from odoo.addons.base.tests.common import BaseCommon
12
from 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

Comments
 (0)