mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
update test
don't use half the quantity so that the reserved qty is different from available qty
This commit is contained in:
@@ -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
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user