Error when calling customized wizard

Asked by Deven Moga

Hello,

I have created my own wizard for reporting purpose. I have followed all the steps which is necessary to generate and calling a wizard in Open ERP. Now during runtime whenever i clicked on wizard menu, its generating below error.

Environment Information :
System : Linux-2.6.27-14-generic-i686-with-debian-lenny-sid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10
Codename: intrepid
Operating System Release : 2.6.27-14-generic
Operating System Version : #1 SMP Tue Aug 18 16:25:45 UTC 2009
Operating System Architecture : 32bit
Operating System Locale : en_IN.ISO8859-1
Python Version : 2.5.2
OpenERP-Client Version : 5.0.3
Last revision No. & ID : 984 <email address hidden>
Traceback (most recent call last):
  File "/home/deven/workspace/server/bin/netsvc.py", line 242, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/deven/workspace/server/bin/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/home/deven/workspace/server/bin/service/web_services.py", line 639, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/deven/workspace/server/bin/service/web_services.py", line 618, in _execute
    wiz = netsvc.LocalService('wizard.'+self.wiz_name[wiz_id])
  File "/home/deven/workspace/server/bin/netsvc.py", line 66, in __init__
    self._service = SERVICES[name]
KeyError: u'wizard.profile_arihant.purchase.by.product.report'
--------------------------------------------------------------------------------------------
Server Trace is :

No LSB modules are available.
[2009-08-31 14:43:28,234] ERROR:module:[01]:
[2009-08-31 14:43:28,235] ERROR:module:[02]: Environment Information :
[2009-08-31 14:43:28,235] ERROR:module:[03]: System : Linux-2.6.27-14-generic-i686-with-debian-lenny-sid
[2009-08-31 14:43:28,235] ERROR:module:[04]: OS Name : posix
[2009-08-31 14:43:28,235] ERROR:module:[05]: Distributor ID: Ubuntu
[2009-08-31 14:43:28,235] ERROR:module:[06]: Description: Ubuntu 8.10
[2009-08-31 14:43:28,235] ERROR:module:[07]: Release: 8.10
[2009-08-31 14:43:28,235] ERROR:module:[08]: Codename: intrepid
[2009-08-31 14:43:28,236] ERROR:module:[09]: Operating System Release : 2.6.27-14-generic
[2009-08-31 14:43:28,236] ERROR:module:[10]: Operating System Version : #1 SMP Tue Aug 18 16:25:45 UTC 2009
[2009-08-31 14:43:28,236] ERROR:module:[11]: Operating System Architecture : 32bit
[2009-08-31 14:43:28,236] ERROR:module:[12]: Operating System Locale : en_IN.ISO8859-1
[2009-08-31 14:43:28,236] ERROR:module:[13]: Python Version : 2.5.2
[2009-08-31 14:43:28,236] ERROR:module:[14]: OpenERP-Server Version : 5.0.3
[2009-08-31 14:43:28,236] ERROR:module:[15]: Last revision No. & ID : 1839 <email address hidden>
[2009-08-31 14:43:28,236] ERROR:module:[16]: This service does not exists: u'wizard.profile_arihant.purchase.by.product.report'
----------------------------------------------------------------------------------------------

Can anyone please kindly help me to solve this error?
Waiting for the valuable reply.
Thanks..

Sincerely,
Deven

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Deven Moga
Solved:
Last query:
Last reply:

This question was originally filed as bug #421835.

Revision history for this message
Deven Moga (erpsupport) said :
#1

Hello,

Kindly provide me the solution...

Deven

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#2

Hello,

Its Key - Error so May be You missed something related to wizard so
Please check the Following possibility :

1. In Wizard Py file last statement : wizard_report('wizard.profile_arihant.purchase.by.product.report')
    'wizard.profile_arihant.purchase.by.product.report' key is match with the wizard xml file statement tag <wizard.
2. In module py need to import wizard.
3. In __terp__ file you need to define wizard xml file in 'update_xml': [ ] list.

Hope This Will Help You.

Thanks.

Revision history for this message
Deven Moga (erpsupport) said :
#3

Thanks vra,

It solved my problem. Thank you..