[IMP]stock : improve little bit
bzr revid: mma@tinyerp.com-20120831062637-ypnga3qcb0ab0bo7
This commit is contained in:
parent
0dd1516ce2
commit
1ff9edff22
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue