From b68d4a87868307b75d13d5de8189f9602683c057 Mon Sep 17 00:00:00 2001 From: Sergio Morillo Date: Fri, 8 Oct 2021 17:47:02 +0200 Subject: [PATCH] Migrate to 6.0 --- tests/test_stock_lot_fifo.py | 7 ++----- tryton.cfg | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/test_stock_lot_fifo.py b/tests/test_stock_lot_fifo.py index ad543de..603f31c 100644 --- a/tests/test_stock_lot_fifo.py +++ b/tests/test_stock_lot_fifo.py @@ -20,7 +20,6 @@ class TestStockLotFifoCase(ModuleTestCase): pool = Pool() Location = pool.get('stock.location') Lot = pool.get('stock.lot') - LotType = pool.get('stock.lot.type') Move = pool.get('stock.move') Product = pool.get('product.product') Template = pool.get('product.template') @@ -29,9 +28,7 @@ class TestStockLotFifoCase(ModuleTestCase): # Create Company company = create_company() with set_company(company): - lot_types = LotType.search([ - ('code', '=', 'storage'), - ]) + lot_types = ['storage'] kg, = Uom.search([('name', '=', 'Kilogram')]) g, = Uom.search([('name', '=', 'Gram')]) template, = Template.create([{ @@ -40,7 +37,7 @@ class TestStockLotFifoCase(ModuleTestCase): 'list_price': Decimal(1), 'cost_price_method': 'fixed', 'default_uom': kg.id, - 'lot_required': [('add', [x.id for x in lot_types])], + 'lot_required': lot_types, }]) product, = Product.create([{ 'cost_price': Decimal(0), diff --git a/tryton.cfg b/tryton.cfg index abe0e2b..9fd3f88 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -1,5 +1,5 @@ [tryton] -version=5.0.0 +version=6.0.0 depends: stock_lot extras_depend: