Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3107 Zobrazení

Accounting: How to delete a validated invoice?

Avatar
Zrušit
Autor Nejlepší odpověď

In certain cases you might run into the issue of having a bunch of validated (test) invoices in your database even before going live with accounting. In order to clean those out, follow the next simple steps: 

1. Create a server action and create the contextual action for it:

for am in records:  

  am.button_draft()

  am.write({'name': '/'})


It should look like this:


2. Go to the invoice model and make sure all invoices you want to delete are in 'cancelled' state

3. Select said invoices > action > execute server action 

4. Finally, don't forget to delete the server action once your invoices have been deleted. Indeed, this kind of action is considered as a python code execution, and if you are not on your own repository, it will generate code maintenance fees to pay every month.

Avatar
Zrušit

If these Invoices were created by Sales Orders or Purchase Orders, be sure to check if those documents need to be cleaned up, as you could have received or delivered goods and have an accounting impact that you also want to clear.

Related Posts Odpovědi Zobrazení Aktivita
1
led 25
4851
1
dub 24
3545
2
srp 23
3496
1
kvě 24
3825
0
dub 21
13