Replace category by categories on Template
issue5320 review23791002
This commit is contained in:
1 parent
6fa904ed94
commit
b9bcce7e0b
1 file changed
-4
@@ -72,7 +72,6 @@ class StockSupplyTestCase(ModuleTestCase):
|
||||
pool = Pool()
|
||||
Uom = pool.get('product.uom')
|
||||
UomCategory = pool.get('product.uom.category')
|
||||
Category = pool.get('product.category')
|
||||
Template = pool.get('product.template')
|
||||
Product = pool.get('product.product')
|
||||
Party = pool.get('party.party')
|
||||
@@ -87,12 +86,9 @@ class StockSupplyTestCase(ModuleTestCase):
|
||||
'rate': 1.0,
|
||||
'factor': 1.0,
|
||||
}])
|
||||
category, = Category.create([{'name': 'ProdCategoryTest'}])
|
||||
template, = Template.create([{
|
||||
'name': 'ProductTest',
|
||||
'default_uom': uom.id,
|
||||
'category': category.id,
|
||||
'account_category': True,
|
||||
'list_price': Decimal(0),
|
||||
'cost_price': Decimal(0),
|
||||
}])
|
||||
|
||||
Reference in new issue
Block a user