python - OpenERP - modules import error -
i'm using openerp without installation - running source:
- get openobject-server, openobject-addons , openerp-web launchpad
- place /opt/openerp/
- add path config file addons_path = /opt/openerp/openobject-addons/,/opt/openerp/openerp-web/addons/
- start openerp server config
all works
but want install new addon (aeroo reports):
- get aeroo sources
- place /opt/openerp/
- change config addons_path = /opt/openerp/openobject-addons/,/opt/openerp/openerp-web/addons/,/opt/openerp/aeroo/
it doesn't work
file "/opt/openerp/aeroo/report_aeroo/check_deps.py", line 33, in <module> osv import osv importerror: no module named osv
same thing when try run sources under windows (using eclipse+pydev)
how can make see modules without changing code?
from osv -> openerp.osv tools -> openerp.tools
not first time see module import without leading 'openerp.'
how can fix ?
use command 7.0 openerp folder
find . -type f -print0 | xargs -0 sed -i 's/from osv/from openerp.osv/g'
Comments
Post a Comment