[Fix] stock: Check the field is exist then qty_available display in report

bzr revid: sbh@tinyerp.com-20100618071206-poxwm1ovzdk6s083
This commit is contained in:
sbh (Open ERP) 2010-06-18 12:42:06 +05:30
parent 3e7f590e31
commit 3a76c0baaf
1 changed files with 2 additions and 1 deletions

View File

@ -349,7 +349,8 @@ class product_product(osv.osv):
if location_info.usage == 'inventory':
if fields.get('virtual_available'):
res['fields']['virtual_available']['string'] = _('Future P&L')
res['fields']['qty_available']['string'] = _('P&L Qty')
if fields.get('qty_available'):
res['fields']['qty_available']['string'] = _('P&L Qty')
if location_info.usage == 'procurement':
if fields.get('virtual_available'):