[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
This commit is contained in:
Rucha (Open ERP)
2011-08-11 18:43:49 +05:30
parent 2f04d3a6c4
commit d0da0465a3
+1 -1
View File
@@ -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!"))