[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.
This commit is contained in:
Josse Colpaert 2015-08-05 18:21:57 +02:00
parent 5831aca505
commit fa1842cb1d
1 changed files with 1 additions and 0 deletions

View File

@ -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