From 9ca77ea0c0db088286d54711f213195d2f42d934 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 12 Nov 2013 17:58:09 +0100 Subject: [PATCH] [FIX] stock: error in yaml test bzr revid: qdp-launchpad@openerp.com-20131112165809-4a15uwgu0mmlf80k --- addons/stock/stock_demo.yml | 8 +++++++- addons/stock/test/shipment.yml | 9 +++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/addons/stock/stock_demo.yml b/addons/stock/stock_demo.yml index 9300c20c83a..0f365382f69 100644 --- a/addons/stock/stock_demo.yml +++ b/addons/stock/stock_demo.yml @@ -75,11 +75,17 @@ location_id: location_refrigerator location_dest_id: location_delivery_counter - - Create STOCK_MOVE for IN + Create STOCK_PICKING for IN +- + !record {model: stock.picking, id: incomming_shipment}: + picking_type_id: stock.picking_type_in + origin: 'incomming_shipment for test' - !record {model: stock.move, id: incomming_shipment_icecream}: + picking_id: stock.incomming_shipment product_id: product_icecream product_uom: product.product_uom_kgm product_uom_qty: 50.0 + picking_type_id: stock.picking_type_in location_id: location_convenience_shop location_dest_id: location_refrigerator diff --git a/addons/stock/test/shipment.yml b/addons/stock/test/shipment.yml index 796cf837063..66c76019044 100644 --- a/addons/stock/test/shipment.yml +++ b/addons/stock/test/shipment.yml @@ -1,13 +1,14 @@ - - Stock manager can only test whole process related to Shipment, so let's check data with stock manager. + Stock manager can only test whole process related to Shipment, so we check data with stock manager. - !context uid: 'res_users_stock_manager' - - I confirm incomming shipment of 50 kgm Ice-cream. + I confirm incomming move of 50 kgm Ice-cream - - !python {model: stock.picking}: | - self.action_confirm(cr, uid, [ref("incomming_shipment")]) + !python {model: stock.move}: | + incomming_move = self.browse(cr, uid, ref("incomming_shipment_icecream")) + self.action_confirm(cr, uid, [incomming_move.id]) - I receive 40kgm Ice-cream so It will make backorder of incomming shipment for 10 kgm. -