I'm playing around with Odoo, created some test invoices, which I now want to delete. Now it's telling me:
"You cannot delete an invoice which is not draft or cancelled. You should refund it instead.""
What exactly am I supposed to do to remove this test invoice?
invoice_cancel is a step in the right direction but under Dutch law numbers have to be consecutive, so I have to be able to delete invoices completely, that includes resetting the numbering.
I do not want to use refund invoices or jump through other hoops. I'm experiencing this in 3 different Odoo setups that I'm working on, so I want to be able to play around and then remove the things I've done. 1. Migration from another system while keeping data from old system. 2. Migration without keeping existing data. 3. A complete new Odoo system. I don't think "You can't do this" is the right answer, for any of these 3 cases.
Another use case is that we have an e-commerce site that needs to be tested. For that we need to generate invoices. These invoices need to be deleted. (And not count towards the numbers.)
And then I already tried creating invoices, but I hadn't managed to increase the starting number, which I can't do anymore unless I remove the 2 invoices I created. See also https://www.odoo.com/forum/Help-1/question/How-to-delete-an-invoice-which-is-not-draft-or-cancelled-On-the-cloud-53951