i created a few invoice for test, and now i want to delete it, how ?
sorry my basic english
y use the online version
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
i created a few invoice for test, and now i want to delete it, how ?
sorry my basic english
y use the online version
You can do this with a few simple steps withou install any addons.
Active Developer Mode
Create a new Action Server (Settings -> Technical -> Server Actions)
The new server action assign:
Name -> Clear Journal Entry Name
Model -> Journal Entries (account.move)
Action To Do: Update the Records
Data To Write: Add one line with:
Number (account.move)
Evaluation Type: Value
Record: (is disable)
Value: /
Asume that you already cancel the invoices, and journals entries that you want to delete.
GO to Accounting -> Accounting -> Journals entries (and remove the filters).
Refresh the site (press F5)
Select all the journal Entries you want to delete.
Select from Action select "Clear Journal Entry Name"
Select all the journal Entries you want to delete. again
Select from Action select "Delete"
-------------------------------- Recomendation -------------------------------------------------
Return to Settings -> Technical -> Server Actions and delete the action whe just created. This must not be accesible at any time, because this action can affect reports and documentations.
Remember this is an behaivors that is not planned in the good use of Odoo, it must be done with absolutly responsibility of the user.
You need to cancel the invoice, create an Action Server to put in false the field posted_before, then you can delete the invoice.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
Read It: https://github.com/odoo/odoo/issues/17193
See: https://www.youtube.com/watch?v=Avo42KGbkKA