The invoice invoice lines shows wrong quantity which is created from a delivery order, which is generated from sale order with Shipping Policy 'Invoice From The Picking', also the quantity of product in sale order exceeds the available stock in the first location this doesn't mean quantity exceed total available stock.
Here is the steps to reproduce the error.
1. Create two location under stock (say Stock/S1 and Stock/S2).
2. Update product quantity 10 at S1, 10 at S2 from the form view of product.
3. Create a sale order the with this product, give quantity more than 10, say 12. and change the Shipping Policy to 'Invoice From The Picking' and Confirm it.
4. Go to Delivery Order and Click on 'Check Availability'. This will split the Stock Move lines into two lines with quantities 10 at S1 and 2 at S2, and Process the Delivery Order and Click on Create Invoice to generate invoice. Now it shows the both invoice lines with quantity of 12.
Here it expects, one invoice line should be 12 and another is 2.
The tested platform is Ubuntu 11.04 using OpenERP Server 6.0.2 Stable.
Thank you
Hello,
Thanks for Reporting.
It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-814102-mma
Revision ID: <email address hidden>
Revision num: 4892.
It will be available in trunk soon.