Remove _inherits

review670002
This commit is contained in:
Cédric Krier committed 2013-03-20 22:51:18 +01:00
1 parent 38f972b697
commit 807ea9b090
1 file changed
+6 -2
+6 -2
View File
@@ -26,6 +26,7 @@ class StockSplitTestCase(unittest.TestCase):
def setUp(self):
trytond.tests.test_tryton.install_module('stock_split')
self.uom = POOL.get('product.uom')
self.template = POOL.get('product.template')
self.product = POOL.get('product.product')
self.location = POOL.get('stock.location')
self.company = POOL.get('company.company')
@@ -50,7 +51,7 @@ class StockSplitTestCase(unittest.TestCase):
'''
with Transaction().start(DB_NAME, USER, context=CONTEXT):
unit, = self.uom.search([('name', '=', 'Unit')])
product, = self.product.create([{
template, = self.template.create([{
'name': 'Test Split',
'type': 'goods',
'cost_price_method': 'fixed',
@@ -58,9 +59,12 @@ class StockSplitTestCase(unittest.TestCase):
'list_price': Decimal(0),
'cost_price': Decimal(0),
}])
product, = self.product.create([{
'template': template.id,
}])
input_, = self.location.search([('code', '=', 'IN')])
storage, = self.location.search([('code', '=', 'STO')])
company, = self.company.search([('name', '=', 'B2CK')])
company, = self.company.search([('rec_name', '=', 'B2CK')])
self.user.write([self.user(USER)], {
'main_company': company.id,
'company': company.id,