Migrate to 6.0

This commit is contained in:
Sergio Morillo 2021-10-08 17:47:02 +02:00
parent 54236c763c
commit b68d4a8786
2 changed files with 3 additions and 6 deletions

View file

@ -20,7 +20,6 @@ class TestStockLotFifoCase(ModuleTestCase):
pool = Pool() pool = Pool()
Location = pool.get('stock.location') Location = pool.get('stock.location')
Lot = pool.get('stock.lot') Lot = pool.get('stock.lot')
LotType = pool.get('stock.lot.type')
Move = pool.get('stock.move') Move = pool.get('stock.move')
Product = pool.get('product.product') Product = pool.get('product.product')
Template = pool.get('product.template') Template = pool.get('product.template')
@ -29,9 +28,7 @@ class TestStockLotFifoCase(ModuleTestCase):
# Create Company # Create Company
company = create_company() company = create_company()
with set_company(company): with set_company(company):
lot_types = LotType.search([ lot_types = ['storage']
('code', '=', 'storage'),
])
kg, = Uom.search([('name', '=', 'Kilogram')]) kg, = Uom.search([('name', '=', 'Kilogram')])
g, = Uom.search([('name', '=', 'Gram')]) g, = Uom.search([('name', '=', 'Gram')])
template, = Template.create([{ template, = Template.create([{
@ -40,7 +37,7 @@ class TestStockLotFifoCase(ModuleTestCase):
'list_price': Decimal(1), 'list_price': Decimal(1),
'cost_price_method': 'fixed', 'cost_price_method': 'fixed',
'default_uom': kg.id, 'default_uom': kg.id,
'lot_required': [('add', [x.id for x in lot_types])], 'lot_required': lot_types,
}]) }])
product, = Product.create([{ product, = Product.create([{
'cost_price': Decimal(0), 'cost_price': Decimal(0),

View file

@ -1,5 +1,5 @@
[tryton] [tryton]
version=5.0.0 version=6.0.0
depends: depends:
stock_lot stock_lot
extras_depend: extras_depend: