Wrong import of module base
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Geospatial Addons for OpenERP |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The 'base' module is imported with 'import base'.
It impacts OpenERP 6.1 and 7.0.
In some conditions, it can lead to errors like the following:
<snip>
line 25, in <module>
from openerp.
File "/<snip>
line 139, in load_module
mod = imp.load_
File "/<snip>
line 28, in <module>
from . import geo_ir
File "/<snip>
line 22, in <module>
from . import ir_model
File "/<snip>
line 23, in <module>
if 'geoengine' not in base.ir.
AttributeError: 'module' object has no attribute 'ir'
Replacing the import in `base_geoengine
`from openerp.addons import base`
It works correctly.
Note that all the others "shortcut" imports could potentially lead to the same error and should be replaced by the complete namespace starting from the `openerp` package.
Changed in geospatial-addons: | |
status: | New → Confirmed |