[IMP]stock : improve little bit code

bzr revid: mma@tinyerp.com-20120830130353-9pvgngbpoleef3f2
This commit is contained in:
Mayur Maheshwari (OpenERP)
2012-08-30 18:33:53 +05:30
parent 5710f88977
commit 694a3ffced
+1 -3
View File
@@ -1738,15 +1738,13 @@ class stock_move(osv.osv):
@return: type
"""
picking_type = context.get('picking_type')
type = False
type = 'internal'
if context is None:
context = {}
if picking_type == 'in':
type = 'in'
elif picking_type == 'out':
type = 'out'
else:
type = 'internal'
return type
_defaults = {