[trunk] HR_* : error on startup due to hr_*/__init__.py

Bug #1090110 reported by Serpent Consulting Services
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

HR/__init__.py needs a wizard as per the code and there does not exist one.

Hence it turns out to be an error on startup.

2012-12-13 20:31:49,136 3831 CRITICAL ? openerp.modules.module: Couldn't load module web
2012-12-13 20:31:49,136 3831 CRITICAL ? openerp.modules.module: No module named wizard
2012-12-13 20:31:49,137 3831 ERROR ? openerp.service: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
  File "/home/jayvora/workspace/trunk/server/openerp/service/__init__.py", line 54, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/home/jayvora/workspace/trunk/server/openerp/modules/module.py", line 414, in load_openerp_module
    getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
  File "/home/jayvora/workspace/trunk/web/addons/web/http.py", line 593, in wsgi_postload
    openerp.wsgi.register_wsgi_handler(Root())
  File "/home/jayvora/workspace/trunk/web/addons/web/http.py", line 482, in __init__
    static_dirs = self._load_addons()
  File "/home/jayvora/workspace/trunk/web/addons/web/http.py", line 549, in _load_addons
    m = __import__('openerp.addons.' + module)
  File "/home/jayvora/workspace/trunk/server/openerp/modules/module.py", line 133, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/home/jayvora/workspace/trunk/addons/hr/__init__.py", line 26, in <module>
    import wizard
ImportError: No module named wizard

Thanks.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Oops, this happens with many modules now.

summary: - [trunk] HR : error on startup due to hr/__init__.py
+ [trunk] HR_* : error on startup due to hr_*/__init__.py
Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello Serpent ,

This issue has been fixed by revision 8262, Revision ID: <email address hidden> . Kindly check it.

Thank you..

Changed in openobject-addons:
status: New → Fix Released
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Twinkle,

Thanks for the notification, we confirm it has been fixed.

Thanks.

Changed in openobject-addons:
milestone: none → 7.0
Revision history for this message
Ram Peri (peri-ram) wrote :

Hi,
   How do I download this patch. Will delete this comment if the solution is obvious.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Ram,

This is fixed already and released in version 7.0.

You can downlaod the latest code from https://code.launchpad.net/~openerp/openobject-addons/7.0

You can even dowanload the particular file from the above link.

Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.