Use account_category in test to prevent requirement from other modules

This commit is contained in:
Cédric Krier committed 2011-11-30 12:33:49 +01:00
1 parent f4322d81f8
commit 3fb2a669f1
1 file changed
+5 -4
+5 -4
View File
@@ -101,10 +101,11 @@ class StockSupplyTestCase(unittest.TestCase):
})
category_id = self.category.create({'name': 'ProdCategoryTest'})
product_id = self.product.create({
'name': 'ProductTest',
'default_uom': uom_id,
'category': category_id,
})
'name': 'ProductTest',
'default_uom': uom_id,
'category': category_id,
'account_category': True,
})
company_id, = self.company.search([('name', '=', 'B2CK')])
self.user.write(USER, {
'main_company': company_id,