VígJAni
VígJAni

Reputation: 303

aeroo install under odoo 8 ImportError

I've installed the aeroolib on my LinuxMint (maybe Ubuntu clone). I've downloaded the aeroo module, put it on the odoo addons. I get the ImportError when I restart the openerp server.

I need to change:

"from osv import osv" to "from openerp.osv import osv"

and so on with netsvc, tools ..... etc.

On OpenErp7 this works fine! IMHO this is maybe some PYTHONPATH problem, but I'm a greenhorn to solve it! Any help would be appreciated!

Cheers! Janos

Upvotes: 0

Views: 1849

Answers (1)

Hardik Patadia
Hardik Patadia

Reputation: 1999

In odoo v8 to import osv, netsvc and tools do the following:

  • To import osv, do the following:

from openerp.osv import osv, fields

  • To import netsvc do the following:

from openerp import netsvc

  • To import tools do the following:

from openerp import tools

Hope this helps !!

Upvotes: 0

Related Questions