Wednesday, November 21, 2018¶
I continued to play after the upgrade on the Lino Tera production site on our way to 18.11.1 (2018-11-30) : manual tests in their data, optimizations and minor bugs, write docs,…
One bug was cool: Dangling vouchers without MTI leaf. Vera reported
this problem (#2683). I then saw that it is caused by
lino_xl.lib.tim2lino.spzloader3
which uses Django’s
_raw_delete()
method to delete invoices and their content, but
forgets to delete also the movements and the bare voucher entries. I
extended the ledger.VoucherChecker to detect and delete dangling
vouchers and their movements.