It is currently Sun Feb 12, 2012 8:36 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Wizard actions and some other quick questions
PostPosted: Tue Oct 13, 2009 8:46 pm 
Offline

Joined: Mon Oct 05, 2009 4:33 pm
Posts: 15
Hello to everyone. I have some quick question.

Q1:
The problem: I developed a scheduler for importing some data. When the module is installed for the first time, the scheduler auto starts. The problem is that during installation of module, timeout occurs, because import(schedule action) takes about 6-7 minutes. Is there a way to specify that importing continues its own way, and the module installer says immedatly install OK? I guess there must be a setting of some kind for this. Or can I return something...

Q2:
I would like to capture an event, when the user left a control for VAT (lost focus - or something) - so I could call online service and a.) check the number and b.) display it in a window (like please wait).... is this possible? Are there any samples - any demo modules or actual modules I can take a look into

Q3:
Continuing Q2: can I programmatically control showing of please wait windows and simmilat.. Are there any samples; what modules can I look for sample code....

Thank you all for your answers in advance...
BR


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 09, 2009 8:14 am 
Offline

Joined: Fri Nov 06, 2009 7:11 am
Posts: 36
Quote:
Q2:
I would like to capture an event, when the user left a control for VAT (lost focus - or something) - so I could call online service and a.) check the number and b.) display it in a window (like please wait).... is this possible?


This is how you can identify the situation when field lose the focus...
Code:
<field name="name" colspan="4" on_change="onchange_name(name)"/>

Code:
def onchange_name(self, cr, uid, ids, context={}):
   result = None
   #TODO : OpenERP Business Process
   print "onchange method call when name field lose focus"
   return result


--
Regards,
rch


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 09, 2009 10:06 am 
Offline

Joined: Mon Oct 05, 2009 4:33 pm
Posts: 15
thank you for your answer..

What is the best solution for this on_change event.... do I make my own module, which derives from base_vat.. and implement vat_change function; so I don't mess the code in base_vat....

Any options regarding... please wait windows or simmilar... so I can notify the user of actions...

br
Kristjan


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP