[FIX] wizard stock partial picking: when no currency defined on product

bzr revid: nel@tinyerp.com-20110125162815-xk5ymun6nx0ud3jz
This commit is contained in:
nel@tinyerp.com 2011-01-25 17:28:15 +01:00
parent afca671b1b
commit e902f2ac86
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class stock_partial_picking(osv.osv_memory):
if pick_type == 'in':
move_memory.update({
'cost' : picking.product_id.standard_price,
'currency' : picking.product_id.company_id.currency_id.id,
'currency' : picking.product_id.company_id and picking.product_id.company_id.currency_id and picking.product_id.company_id.currency_id.id or False,
})
return move_memory