From fa1842cb1dbff0a6c50aed2342198a5c42283adf Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Wed, 5 Aug 2015 18:21:57 +0200 Subject: [PATCH] [FIX] stock: add procurement group for extra moves in picking When pack operations generate extra moves, they should take the same procurement group as those of the picking. That way, when invoicing, they will be put on the same invoice when there is a different invoice address on the sale order. --- addons/stock/stock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 21a65f2eb73..114a724c1a0 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1362,6 +1362,7 @@ class stock_picking(osv.osv): 'name': _('Extra Move: ') + name, 'state': 'draft', 'restrict_partner_id': op.owner_id, + 'group_id': picking.group_id.id, } return res