ProductSupplier is linked to template not product

This commit is contained in:
Cédric Krier committed 2013-03-26 11:59:10 +01:00
1 parent c2657cfd91
commit ce4e9152d9
1 file changed
+2 -1
+2 -1
View File
@@ -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,