From d0da0465a3517241f1dcf21be6645496f4fa7270 Mon Sep 17 00:00:00 2001 From: "Rucha (Open ERP)" Date: Thu, 11 Aug 2011 18:43:49 +0530 Subject: [PATCH] [FIX]: stock: when returning products if we change the price it should reflact in the price_unit field too bzr revid: rpa@tinyerp.com-20110811131349-r0sjbm31oq37e37b --- addons/stock/wizard/stock_return_picking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/wizard/stock_return_picking.py b/addons/stock/wizard/stock_return_picking.py index 6b0ed010426..a79251438e5 100644 --- a/addons/stock/wizard/stock_return_picking.py +++ b/addons/stock/wizard/stock_return_picking.py @@ -184,7 +184,7 @@ class stock_return_picking(osv.osv_memory): 'picking_id': new_picking, 'state': 'draft', 'location_id': new_location, 'location_dest_id': move.location_id.id, 'date': date_cur, - 'price_unit': move.price_unit}) + 'price_unit': data_get.price_unit}) move_obj.write(cr, uid, [move.id], {'move_history_ids2':[(4,new_move)]}) if not returned_lines: raise osv.except_osv(_('Warning !'), _("Please specify at least one non-zero quantity!"))