From 485ac1ab765fc2fc07e149c2716161a37423d672 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Mon, 3 Mar 2014 00:57:50 +0100 Subject: [PATCH] [FIX] stock: when unboxing, the package must be given explicitelly (introduced in revision 9583) bzr revid: qdp-launchpad@openerp.com-20140302235750-c8s99jzhsqqu7v9a --- addons/stock/test/packing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/test/packing.yml b/addons/stock/test/packing.yml index c85e2b0d769..3be5b9038c6 100644 --- a/addons/stock/test/packing.yml +++ b/addons/stock/test/packing.yml @@ -106,7 +106,7 @@ for rec in delivery_id.pack_operation_ids: if rec.package_id.name == 'Pallet 2': lot_ids = self.pool.get("stock.production.lot").search(cr, uid, [('product_id', '=', ref('product1')), ('name','=','Lot A')]) - stock_pack.write(cr, uid, [rec.id], {'product_id': ref('product1'), 'product_qty': 20, 'lot_id': lot_ids[0], 'package_id': False, 'product_uom_id': ref('product.product_uom_unit')}, context=context) + stock_pack.write(cr, uid, [rec.id], {'product_id': ref('product1'), 'product_qty': 20, 'lot_id': lot_ids[0], 'product_uom_id': ref('product.product_uom_unit')}, context=context) if rec.package_id.name == 'Pallet 3': stock_pack.write(cr, uid, [rec.id], {'product_id': ref('product1'),'product_qty': 10, 'product_uom_id': ref('product.product_uom_unit')}, context=context) -