From 1ff9edff22276588a92ecdb276329e37bc8a76bf Mon Sep 17 00:00:00 2001 From: "Mayur Maheshwari (OpenERP)" Date: Fri, 31 Aug 2012 11:56:37 +0530 Subject: [PATCH] [IMP]stock : improve little bit bzr revid: mma@tinyerp.com-20120831062637-ypnga3qcb0ab0bo7 --- addons/stock/stock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index f4997178c5e..d8695752c46 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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':