python - OpenERP - modules import error -


i'm using openerp without installation - running source:

  1. get openobject-server, openobject-addons , openerp-web launchpad
  2. place /opt/openerp/
  3. add path config file addons_path = /opt/openerp/openobject-addons/,/opt/openerp/openerp-web/addons/
  4. start openerp server config

all works

but want install new addon (aeroo reports):

  1. get aeroo sources
  2. place /opt/openerp/
  3. 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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -