[IMP]stock : improve little bit

bzr revid: mma@tinyerp.com-20120831062637-ypnga3qcb0ab0bo7
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-08-31 11:56:37 +05:30
parent 0dd1516ce2
commit 1ff9edff22
1 changed files with 2 additions and 2 deletions

View File

@ -1737,10 +1737,10 @@ class stock_move(osv.osv):
""" Gets default type of move
@return: type
"""
picking_type = context.get('picking_type')
type = 'internal'
if context is None:
context = {}
picking_type = context.get('picking_type')
type = 'internal'
if picking_type == 'in':
type = 'in'
elif picking_type == 'out':