mirror of
https://gitlab.com/datalifeit/trytond-stock_lot_fifo
synced 2023-12-14 06:02:54 +01:00
Migrate to 6.0
This commit is contained in:
parent
54236c763c
commit
b68d4a8786
|
@ -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),
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[tryton]
|
[tryton]
|
||||||
version=5.0.0
|
version=6.0.0
|
||||||
depends:
|
depends:
|
||||||
stock_lot
|
stock_lot
|
||||||
extras_depend:
|
extras_depend:
|
||||||
|
|
Loading…
Reference in a new issue