Migrate to 6.0
This commit is contained in:
parent
54236c763c
commit
b68d4a8786
|
@ -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),
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=5.0.0
|
||||
version=6.0.0
|
||||
depends:
|
||||
stock_lot
|
||||
extras_depend:
|
||||
|
|
Loading…
Reference in New Issue