[IMP]stock : improve little bit code
authorMayur Maheshwari (OpenERP) <mma@tinyerp.com>
Thu, 30 Aug 2012 13:03:53 +0000 (18:33 +0530)
committerMayur Maheshwari (OpenERP) <mma@tinyerp.com>
Thu, 30 Aug 2012 13:03:53 +0000 (18:33 +0530)
bzr revid: mma@tinyerp.com-20120830130353-9pvgngbpoleef3f2

addons/stock/stock.py

index e49cc0f..f499717 100644 (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 = {