Backport account_move_line.unlink 6.1 - 6.0

[FIX] Poor performance in account_move_line.unlik 

OpenERP 6.0.4 + Postgres 8.4 + Ubuntu 10.04

I have a large invoice, it creates an account move with 257 lines, when I try to cancel this invoice the server take a very long time to cancel the invoice + 30 min and the transaction fails (timeout?).

I found a fix in addons 6.1, I create a fork and make a backport with that fix. When be ready, I send the merge proposal.

I hope that this helps.

Thanks.

Juan Márquez


See https://github.com/odoo/odoo/issues/1788 issue