From 694a3ffced347f5e3a3e4c059ffc2ae0ce71ba34 Mon Sep 17 00:00:00 2001 From: "Mayur Maheshwari (OpenERP)" Date: Thu, 30 Aug 2012 18:33:53 +0530 Subject: [PATCH] [IMP]stock : improve little bit code bzr revid: mma@tinyerp.com-20120830130353-9pvgngbpoleef3f2 --- addons/stock/stock.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index e49cc0f..f499717 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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 = { -- 1.7.10.4