update test

don't use half the quantity so that the reserved qty is different from
available qty
This commit is contained in:
Alexandre Fayolle
2014-09-08 15:29:03 +02:00
parent d59372733f
commit 25c434cd4c

View File

@@ -27,13 +27,13 @@
product = self.browse(cr, uid, ref('stock_reserve.product_sorbet'), context=context)
assert product.virtual_available == 10, "Stock is not updated."
-
I create a stock reservation for 5 kgm
I create a stock reservation for 6 kgm
-
!record {model: stock.reservation, id: reserv_sorbet1}:
product_id: product_sorbet
product_uom_qty: 5.0
product_uom_qty: 6.0
product_uom: product.product_uom_kgm
name: reserve 5 kgm of sorbet for test
name: reserve 6 kgm of sorbet for test
-
I confirm the reservation
-
@@ -44,7 +44,7 @@
-
!python {model: product.product}: |
product = self.browse(cr, uid, ref('stock_reserve.product_sorbet'), context=context)
assert product.virtual_available == 5, "Stock is not updated."
assert product.virtual_available == 4, "Stock is not updated."
-
I release the reservation
-