mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_available_mrp: Fix test value
The product company should be taken into account to check the value that we expect
This commit is contained in:
@@ -131,7 +131,9 @@ class TestPotentialQty(TransactionCase):
|
||||
company_id=chicago_id,
|
||||
)
|
||||
self.assertPotentialQty(
|
||||
self.tmpl, 250.0, "Wrong template potential after receiving components"
|
||||
self.tmpl.with_company(chicago_id),
|
||||
250.0,
|
||||
"Wrong template potential after receiving components",
|
||||
)
|
||||
|
||||
test_user = self.env["res.users"].create(
|
||||
@@ -232,7 +234,9 @@ class TestPotentialQty(TransactionCase):
|
||||
"variant 1's potential",
|
||||
)
|
||||
self.assertPotentialQty(
|
||||
self.var2, 213.0, "Wrong variant 2 potential after receiving components"
|
||||
self.var2.with_company(self.ref("stock.res_company_1")),
|
||||
213.0,
|
||||
"Wrong variant 2 potential after receiving components",
|
||||
)
|
||||
# Check by warehouse
|
||||
self.assertPotentialQty(
|
||||
|
||||
Reference in New Issue
Block a user