[FIX] stock: do not set user_id on prepare_invoice_group
authorDenis Ledoux <dle@odoo.com>
Thu, 24 Jul 2014 18:42:21 +0000 (20:42 +0200)
committerDenis Ledoux <dle@odoo.com>
Thu, 24 Jul 2014 18:42:21 +0000 (20:42 +0200)
commita5531c1d291786e76974e6bd6c2481fa5483e803
treed13393453b1f857a82df07ea0b70870b0a288dab
parent951a51df3f7696bf69a5bb0f3fc82a802219bf19
[FIX] stock: do not set user_id on prepare_invoice_group

The user_id is already set by the prepare_invoice method, which is called before the prepare_invoice_group (the user_id is already set, thus)
Besides, _prepare_invoice is overriden in sale_stock, to set the picking sale order salesman as user_id, and, without this correct, grouping invoicse by partner re-set the user_id to uid, which is wrong.
addons/stock/stock.py