From c06a9696123daae1a2aca0fbdae465d5a8ddc275 Mon Sep 17 00:00:00 2001 From: fka-odoo Date: Mon, 19 Jan 2015 17:41:42 +0530 Subject: [PATCH] [FIX] stock: force recomputing transfer information on picking When clicking on the Transfer button on a picking the packoperations should always be recomputed. If the pack operations are only computed the first time, the picking could be modified (e.g. notice wrong quantity) and still display previous operations when reloard the transfer button. opw 620636 --- addons/stock/wizard/stock_transfer_details.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/stock/wizard/stock_transfer_details.py b/addons/stock/wizard/stock_transfer_details.py index 17f302f6317..ed03413f5fa 100644 --- a/addons/stock/wizard/stock_transfer_details.py +++ b/addons/stock/wizard/stock_transfer_details.py @@ -48,8 +48,7 @@ class stock_transfer_details(models.TransientModel): picking = self.pool.get('stock.picking').browse(cr, uid, picking_id, context=context) items = [] packs = [] - if not picking.pack_operation_ids: - picking.do_prepare_partial() + picking.do_prepare_partial() for op in picking.pack_operation_ids: item = { 'packop_id': op.id,