purchase_requisition.py fails and causes oepner to not load other modules

Bug #1277236 reported by Alejandro Santana
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP for Humanitarian NGOs
Fix Released
Undecided
Unassigned

Bug Description

File purchase_requisition_extended/model/purchase_requisition.py has two typos which prevents openerp from loading. It gives an error and prevent the loading of other modules.
Closing parenthesis in lines 35 and 48 shouldn't be there.
In this cases... should I provide a patch file or make a merge proposal?

The error trace:

2014-02-06 19:34:39,164 16315 CRITICAL ? openerp.modules.module: invalid syntax (purchase_requisition.py, line 36)
2014-02-06 19:34:39,164 16315 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 "/mnt/workZone/openerp/testing/openerp_70_ocb_devel/ocb-server/openerp/service/__init__.py", line 60, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/mnt/workZone/openerp/testing/openerp_70_ocb_devel/ocb-server/openerp/modules/module.py", line 415, in load_openerp_module
    getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
  File "/opt/openerp/testing/openerp_70_ocb_devel/all-addons/web/http.py", line 628, in wsgi_postload
    openerp.wsgi.register_wsgi_handler(Root())
  File "/opt/openerp/testing/openerp_70_ocb_devel/all-addons/web/http.py", line 517, in __init__
    self.load_addons()
  File "/opt/openerp/testing/openerp_70_ocb_devel/all-addons/web/http.py", line 580, in load_addons
    m = __import__('openerp.addons.' + module)
  File "/mnt/workZone/openerp/testing/openerp_70_ocb_devel/ocb-server/openerp/modules/module.py", line 133, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/opt/openerp/testing/openerp_70_ocb_devel/all-addons/purchase_requisition_extended/__init__.py", line 2, in <module>
    from . import model
  File "/opt/openerp/testing/openerp_70_ocb_devel/all-addons/purchase_requisition_extended/model/__init__.py", line 2, in <module>
    import purchase_requisition
  File "/opt/openerp/testing/openerp_70_ocb_devel/all-addons/purchase_requisition_extended/model/purchase_requisition.py", line 36
    help="- Restricted : you select yourself the "
        ^
SyntaxError: invalid syntax

Related branches

Changed in openerp-humanitarian-ngo:
status: New → Confirmed
Changed in openerp-humanitarian-ngo:
status: Confirmed → Fix Committed
Changed in openerp-humanitarian-ngo:
status: Fix Committed → Fix Released
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.