From ce4e9152d948a8a1770f77d68a53593e39d14c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 26 Mar 2013 11:59:10 +0100 Subject: [PATCH] ProductSupplier is linked to template not product --- tests/test_stock_supply_day.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_stock_supply_day.py b/tests/test_stock_supply_day.py index aa3cf7608f..9cdd0f0b02 100644 --- a/tests/test_stock_supply_day.py +++ b/tests/test_stock_supply_day.py @@ -148,8 +148,9 @@ class StockSupplyDayTestCase(unittest.TestCase): 'account_receivable': receivable_id, 'account_payable': payable_id, }) + product = self.product.browse(product_id) product_supplier_id = self.product_supplier.create({ - 'product': product_id, + 'product': product.template.id, 'company': company_id, 'party': supplier_id, 'delivery_time': delivery_time,