It is currently Sun Feb 12, 2012 6:50 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: problem with wizards
PostPosted: Sat May 09, 2009 6:00 pm 
Offline

Joined: Thu May 07, 2009 3:40 pm
Posts: 8
hi
i have a problem please. I tried to create a new wizard so i took the code concerning a wizrd in partener module (send-email).
The wizard is working but when i change the wizard name in nameModule_wizard.xml it gives me this message:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 231, in dispatch
result = LocalService(service_name)(method, *params)
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 74, in __call__
return getattr(self, method)(*params)
File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 552, in execute
return self._execute(db, uid, wiz_id, datas, action, context)
File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 531, in _execute
wiz = netsvc.LocalService('wizard.'+self.wiz_name[wiz_id])
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 67, in __init__
self._service = SERVICES[name]
KeyError: 'wizard.contract.spam_send'
If someone knows the answer please respond knowing that i almost did all the verification in the module files __init__,terp /wizard
thank you


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 16, 2009 1:17 pm 
Offline

Joined: Fri Dec 19, 2008 8:30 am
Posts: 60
Hello,

You have to also change that name in wizard.py file,

where you created a class of wizard.interface, you have to pass wizard name in that class.

wizard.xml :
<wizard id="id of wizard" model="model" name="wizard.name" string="Test"/>

wizard.py :
class test_test(wizard.interface):
...... Your logic ....
test_test(wizard.name)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 15, 2009 10:19 am 
Offline

Joined: Tue Sep 15, 2009 9:37 am
Posts: 3
Hello I was looking for this kind of topic. I have a similar problem and I already changed wizard.py file. But still it's the same problem and problem remains as it is. Is there any other way???


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 15, 2009 1:50 pm 
Offline

Joined: Sat Nov 17, 2007 12:35 am
Posts: 265
Location: Madeira, PT
Try to reload module and/or restart server...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 29, 2009 9:52 pm 
Offline

Joined: Tue Sep 29, 2009 7:08 pm
Posts: 23
I also have the same problem.
I tried many times reloading / updagrading the module, but still no luck.
When I try to restart the server I get the same error.

Any clues?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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