function shows working status

Asked by Kostas Sourvinos on 2011-11-24

Hello,
When i press a button, i am going to a function in .py this is working and there is no problem.
but lets say, this function is inserting 1000 records

counter = 1
for new_record in range ( record_from, record_until ):
   res = {
    'rec_counter': counter
   }
                        counter = counter + 1
   new_record_id = makerecords.create(cr, uid, res)

inside in a for loop and we want to inform the user with the remaings records "please wait #### is remaing to insert"
what i can do ?

Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo GTK Client (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
xrg (xrg) said :
#1

On Thursday 24 November 2011, you wrote:
> New question #179923 on OpenERP GTK Client:
> https://answers.launchpad.net/openobject-client/+question/179923
>
> Hello,
> When i press a button, i am going to a function in .py this is working and
> there is no problem. but lets say, this function is inserting 1000 records
>

So far, the RPC protocols do *not* support asynchronous "progress
indications". They are just function calls: send the arguments, wait in blind,
get the result. We would need to refactor the protocol and (at least) support
a side channel to let the client receive progress indication before the real
result.

Some blueprints have been made for that, but (guess what), they will _never_
be applied to official series.

--
Say NO to spam and viruses. Stop using Microsoft Windows!

Revision history for this message
Kostas Sourvinos (kostas-sourvinos) said :
#2

Thank you for your answer

Can you help with this problem?

Provide an answer of your own, or ask Kostas Sourvinos for more information if necessary.

To post a message you must log in.