Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Pycharm configuration, lack of openerp imports

By
Roman
on 9/5/16, 7:11 AM 240 views

    Hello, I'm quite new in Phyton, and struggling with strange issue. My interperter can not resolve any import OPENERP, did I wrongly installed it? How to add this library to enviroment? Thanks in advance :)    

0
shameem@aχoncoms
On 10/29/16, 4:09 AM

Roman,

It is a common issue when installing odoo 10. I don't know what you are installing

It's solution is

Small change in odoo-server file
Put odoo instead of openerp


#!/usr/bin/env pythonimport openerp
import openerp
if __name__ == "__main__":
    openerp.cli.main()

to

#!/usr/bin/env pythonimport odoo
import odoo
if __name__ == "__main__":
    odoo.cli.main()


0
保定-粉刷匠
On 10/28/16, 9:10 AM

What are you using,Pycharm or Eclipse?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/5/16, 7:11 AM
Seen: 240 times
Last updated: 10/29/16, 4:09 AM