I installed python 2.7 and 3.4 on my local machine and on the server. Also installed Odoo 10. and 11.0 on the same machine. I created modules for Odoo 10 and 11, executed successfully. But when I upload Odoo 11 code to server getting an error.
Example, the print statement I typed `print'Test Print'` in both Odoo 10 & 11.0. It worked without any error on the local machine. But got an error on the server.
I checked the version on both machines, the output is:
python -V
Python 2.7.12
python3 -V
Python 3.5.2
How can I tell Odoo to choose correct python version while compiling the code ?
Hello, May be usefull
~/odoo/odoo-10.0$ python odoo-bin --addons-path=addons,/location/your/custome/module--xmlrpc-port=8069 --db-filter your_db_name -d your_db_name -u custome_module
~/odoo/odoo-11.0$ python odoo-bin --addons-path=addons,/location/your/custome/module--xmlrpc-port=8069 --db-filter your_db_name -d your_db_name -u custome_module