ProductSupplier is linked to template not product
This commit is contained in:
1 parent
c2657cfd91
commit
ce4e9152d9
1 file changed
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user