Skip to Content
Menu
This question has been flagged
1 Reply
1606 Views

I am working on a database (Odoo 14, hosted on Odoo.sh) that has about 40,000 draft journal entries that were automatically created as part of a custom workflow. I want to delete (or cancel) these draft entries. But doing so from the listviews takes a lot of time and the page times out after 10-12 minutes. Is there a better way to do this. 

I am not able to cancel these Journal Entries because I get an error as follows.


Avatar
Discard
Best Answer

Approach 1:

You can create a specific module for doing so. Write a post_init_hook function for your module to search for drafts and delete them after installing the module. This can be a one-time-only installing module and then you can uninstall it.

Approach 2:

Directly connect to the odoo database shell and write ORM queries to delete data.

Avatar
Discard
Related Posts Replies Views Activity
1
Aug 24
365
1
Nov 23
2614
3
Nov 24
8280
1
Jun 21
1599
1
Feb 19
4345