This question has been flagged
1 Reply
2719 Views

I have written a custom module and placed in different folder (not in addons).I am getting the error cannot

import name account_profit_loss when i am trying to import the statement in .py file.

from account.report import account_profit_loss.How to resolve this.Please help me ASP.

Mainly the question in when we try to import the modules od addons in other folder like custom_modules how to do.I am getting errors please help me thank you

Avatar
Discard
Author

I have set the path like this ./openerp-server --addons ../web-client/addons/,../custom_modules and then restarted the server still i am getting error

Best Answer

You need to specify the addons location, check: https://doc.openerp.com/trunk/server/01_getting_started/#configure-addons-locations

Hope this helps.

Avatar
Discard