From 3fb2a669f1ceaac358e45bf274b999ca047d30e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 30 Nov 2011 12:33:49 +0100 Subject: [PATCH] Use account_category in test to prevent requirement from other modules --- tests/test_stock_supply.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_stock_supply.py b/tests/test_stock_supply.py index 8226921ee8..6aea1a92df 100644 --- a/tests/test_stock_supply.py +++ b/tests/test_stock_supply.py @@ -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,