Comment 24 for bug 527120

Revision history for this message
invitu (invitu) wrote :

ok, I took time to re-read carefully this thread.
Everything seems to converge on the same problem than in https://bugs.launchpad.net/openobject-addons/+bug/613286
The solution for both bugs seems to be adding extra fields in output pickings.

About old comment #6, the question was "which cost_sale should we take to make the credit note when the return concerns an invoice that contains several pickings?"
If you make credit notes from return pickings, you won't have the problem as you will return the product from the original output picking (as long as we store the cost price in it). In real life, if you don't manage production lots, it will be impossible to identify from which output picking the product is, so let the user make the choice.
If you make credit notes directly from invoices without making return picking, you won't be able to have a right cost_price. I would suggest to take the product.cost_price (it's better than nothing).

Note that we are talking here about returns from customers and not about returns to suppliers which is totally different (there is no move_value_cost for input pickings)