From 7e8db1986a91d8a7eaa3242f552ba980f76d0d88 Mon Sep 17 00:00:00 2001 From: "DBR (OpenERP)" Date: Mon, 28 Nov 2011 18:39:22 +0530 Subject: [PATCH] [IMP]stock: Improve physical inventory test case for set to zero option bzr revid: dbr@tinyerp.com-20111128130922-vunolv3ieg1nasct --- addons/stock/test/ui/physical_inventory.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/stock/test/ui/physical_inventory.yml b/addons/stock/test/ui/physical_inventory.yml index be60fc974b7..f64a0777c4c 100644 --- a/addons/stock/test/ui/physical_inventory.yml +++ b/addons/stock/test/ui/physical_inventory.yml @@ -12,7 +12,7 @@ !record {model: stock.fill.inventory, id: stock_fill_inventory_0}: location_id: stock.stock_location_stock recursive: False - set_stock_zero: False + set_stock_zero: True - I fill inventory. - @@ -27,9 +27,11 @@ inventory = self.browse(cr, uid, [ref('stock_physical_inventory0')]) self.action_confirm(cr,uid,[ref('stock_physical_inventory0')]) assert inventory[0].state == 'confirm',"After confirm the inventory it should be in 'Confirm' state" + for line in inventory[0].inventory_line_id: + assert line.product_qty == 0.0,"Product Quantity should be Zero" self.action_done(cr,uid,[ref('stock_physical_inventory0')]) - - I Validate the Inventory. + I check the Inventory after Validate. - !python {model: stock.inventory}: | inventory = self.browse(cr, uid, [ref('stock_physical_inventory0')])