[FIX] account: prevent invoice line duplication on partner duplication
authorDenis Ledoux <dle@odoo.com>
Tue, 25 Nov 2014 17:18:23 +0000 (18:18 +0100)
committerDenis Ledoux <dle@odoo.com>
Tue, 25 Nov 2014 17:23:45 +0000 (18:23 +0100)
commit4ca389a1a60e7f3266c9e8aedb4961bb6d875bae
tree626985a1bd8de332844c8dec774ab855071479d0
parent73f7a2ba35e21d60ef98fe8ad5f2a9d735afe196
[FIX] account: prevent invoice line duplication on partner duplication

If a company contact (a partner with a company set as parent) had invoices, and the company of this contact was duplicated, all the invoices lines were duplicated,  on the original invoice moreover (new lines were added on existing invoices)
addons/account/account_invoice.py