force recomputation of stock.location hierachy

before running the tests. This fixes the failure experienced when running the
test in --init mode rather than --update mode.
This commit is contained in:
Alexandre Fayolle
2015-09-15 12:50:24 +02:00
committed by Carlos Roca
parent 6ba2e0dbfd
commit 3e8a82a6ec

View File

@@ -1,3 +1,12 @@
-
I force recomputation of stock.location parent left/right
-
!python {model: stock.location}:
# we need this because when running the tests at install time as is done on
# Travis, the hook performing this operation for the new stock reservation
# location is run after the test execution. This causes the stock level
# computation to be wrong at the time the tests are run.
self._parent_store_compute(cr)
-
I create a product to test the stock reservation
-