[MIG] stock_archive_constraint: Migration to 15.0

This commit is contained in:
Cesar Andres Sanchez
2022-07-13 22:33:48 +02:00
committed by Carlos Lopez
parent c48c667ae6
commit 7df982f365
9 changed files with 97 additions and 108 deletions

View File

@@ -2,10 +2,10 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo.exceptions import ValidationError
from odoo.tests.common import Form, SavepointCase
from odoo.tests.common import Form, TransactionCase
class TestLocationArchiveConstraint(SavepointCase):
class TestLocationArchiveConstraint(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
@@ -24,7 +24,7 @@ class TestLocationArchiveConstraint(SavepointCase):
def _create_product(self, name):
product_form = Form(self.env["product.product"])
product_form.name = name
product_form.type = "product"
product_form.detailed_type = "product"
return product_form.save()
def _create_stock_location(self, name):