OCA/OCB — pull request #8 by bizzappdev (2014-07-04 05:23:21+00:00)
Title: Multiple Price different move from anglo saxon module

Bug In case of Same product appears more than one time in single supplier invoice.
----------------------------------------------------------------------------------------------

**Possibility are when / Step to reproduce.**
* Pre-Configuration required in category/product Price different account, Stock valuation Account, Stock Input Account, Stock Output Account. account_anglo_saxon module is installed.
* We have purchase order with unit price different than Cost price and QTY 500.
* Invoicing Control = Based on incoming shipments
* We have 5 lots when receive products from supplier So Split lines into 5 lines.
* Create invoice from the Incoming Shipment.
* It will create Supplier invoice with 5 Lines with same product .
* Validate Supplier Invoice.
It will create 5 move line for product account with cost price, Tax line (if any), Total creditor account, and 5*5 = 25 Price different move lines.

**Here the bug is it has to have only 5 price different move lines.**

Cause is in account_anglo_saxon/invoice.py it is comparing move lines (provided by move_line_get method ) and invoice line with account_id and product_id.
So for all 5 lines account_id and product_id are same so it is creating lines n times for each invoice line.

**Changes done.**
* Add Line Id from move line get in account/account_invoice.py
* Add condition while generating price difference move account_anglo_saxon/invoice.py.