Problem with Pycharm: AttributeError: module 'odoo' has no attribute 'cli'

Hi, I'm getting this error with Pycharm with try to run a Odoo project.


Traceback (most recent call last):
File "/opt/odoo/odoo/setup/odoo", line 8, in <module>
AttributeError: module 'odoo' has no attribute 'cli'

I'd like what is the problem or it's a problem with a package or something like that. I'm working with Oddo v 11 and Python 3,6

This is the file "odoo"

#!/usr/bin/env python3

# set server timezone in UTC before time module imported
__import__('os').environ['TZ'] = 'UTC'
import odoo

if __name__ == "__main__":


1 comment
Comment actions Permalink



I am wondering if the code can be executed in a system terminal (out of PyCharm) with the same intepreter? 



Please sign in to leave a comment.