Modularize the selection of the partner to invoice when invoicing from the picking.
authorAlexis de Lattre <alexis@via.ecp.fr>
Thu, 5 Jan 2012 16:08:45 +0000 (17:08 +0100)
committerAlexis de Lattre <alexis@via.ecp.fr>
Thu, 5 Jan 2012 16:08:45 +0000 (17:08 +0100)
commit638ca9122e950b4b91f80748f4edf888dbbc07bd
tree79507aaaab74ac9fb002bc9f318b79c349a94639
parent8394afcf8a8b87cd450e259753a117416a56c3d8
Modularize the selection of the partner to invoice when invoicing from the picking.
With this modification, all the parameters of the invoice are correct even when the goods are delivered to a third party company i.e. when the partner who receives the goods (picking.address_id.partner_id) is not to partner who ordered the goods (picking.sale_id.partner_id).

bzr revid: alexis@via.ecp.fr-20120105160845-c6wk08k7v7i64zyl
addons/sale/stock.py
addons/stock/stock.py