Fix no auto line voucher.

Voucher.line are deleted when amount of money changes we have to copy
the old line before calling super classes. Then returning the copy of
old lines.
Here, ids looks like a global variable to me (because it is defined out of your function's scope). I would rather pass it by argument to the function.