diff --git a/stock_reserve_sale/test/sale_reserve.yml b/stock_reserve_sale/test/sale_reserve.yml index 7450caad6..a3a81a472 100644 --- a/stock_reserve_sale/test/sale_reserve.yml +++ b/stock_reserve_sale/test/sale_reserve.yml @@ -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 -