[FIX] stock : return picking type corrected
authorGrzegorz Grzelak (Cirrus.pl) <>
Tue, 27 Jul 2010 13:05:12 +0000 (18:35 +0530)
committervra <vra@tinyerp.com>
Tue, 27 Jul 2010 13:05:12 +0000 (18:35 +0530)
lp bug: https://launchpad.net/bugs/588657 fixed

bzr revid: vra@tinyerp.com-20100727130512-6vvz94nfl2k01s2k

addons/stock/wizard/wizard_return.py

index 64e0852..73b9c31 100644 (file)
@@ -71,7 +71,7 @@ def _create_returns(self, cr, uid, data, context):
 
     for move in move_obj.browse(cr, uid, data['form'].get('returns',[])):
         if not new_picking:
-            if pick.type=='out':
+            if pick.type in ['out','delivery']:
                 new_type='in'
             elif pick.type=='in':
                 new_type='out'