2
votes

I'm using openerp without installation - just running it from source:

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

All works

But now I want to install new addon (aeroo reports):

  1. get aeroo sources
  2. place to /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>
    from osv import osv
ImportError: No module named osv

Same thing when I try to run it from sources under windows (using eclipse+pydev)

How can I make it see modules without changing code?

from osv -> from openerp.osv
from tools -> from openerp.tools

Not first time I see module with import without leading 'openerp.'

How can i fix it ?

1
I think you want to run aeroo report in version 7???user1576199
you get aeroo report for version 7 from here. alistek.com/en/component/content/article/…user1576199
i used sources from launchpad.net/aeroo - it's the sameVital
:( At my end its work perfectly i m using ubuntu. Then you have to replace osv with openerp.osv,user1576199
Changing source is not a way...Vital

1 Answers

3
votes

Use this command into 7.0 openerp folder

find . -type f -print0 | xargs -0 sed -i 's/from osv/from openerp.osv/g'