Skip to Content
Menu
This question has been flagged

I have a server action that processes a bunch of records in bulk. The user selects a multiple models from a list view, and triggers the action using the "Action" menu.


The processing that is done to each record is involved. Sometimes the user selects a lot of records, and it causes the request to timeout or even crashes the server from time to time. I am guessing this is because Odoo is performing all of this processing for all of the selected records in memory before actually committing the transaction and completing the request.


It would be much more resource-effective if I could have the action process the first record, respond to the client, have the client automatically request the server action for the next record, process it, respond, and so on until the list is complete.


In order for this to work I would need a way for a server action to respond in a way that tells the client to request an additional server action with no input necessary from the user. Does anybody know of a way to do this in Odoo?


I am using odoo online, so I don't have full access to source code. Also it's Odoo 10, which I know is outdated.

Avatar
Discard
Related Posts Replies Views Activity
1
Oct 23
6961
0
May 21
1509
0
Mar 15
2494
0
Mar 15
2583
1
Mar 15
3972