From 6d5fbb75a5ce792269c32c822fb52da4ba32bb8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 21 Mar 2013 09:55:51 +0100 Subject: [PATCH] ProductSupplier is linked to template not product --- tests/test_stock_supply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_stock_supply.py b/tests/test_stock_supply.py index b0ea9ba83b..79809aa64f 100644 --- a/tests/test_stock_supply.py +++ b/tests/test_stock_supply.py @@ -128,7 +128,7 @@ class StockSupplyTestCase(unittest.TestCase): 'account_payable': payable.id, }]) product_supplier, = self.product_supplier.create([{ - 'product': product.id, + 'product': template.id, 'company': company.id, 'party': supplier.id, 'delivery_time': delivery_time,