Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
27039 Переглядів

 Hi, 

I'm using Pycharm (but tested using Sublime as well). I start Odoo server (using odoo-bin) with --dev=all parameter, but when I change python code (for example at the controller), it doesnt update the change. I have to manually restart the odoo server for each change. 


Am I doing something wrong, or is this the way it is supposed to develop using Odoo? 

Аватар
Відмінити
Найкраща відповідь

Hello,

Please check watchdog library. It is required to have watchdog installed to auto reload python code.

For python3,

pip3 install watchdog

For Python2,

pip install watchdog
Аватар
Відмінити

I tried to use it, i have many problems with it and `werkzeug`.

Can you send us log file or few lines of log when you restart server? Or Please contact us at info@craftsync.com, we will look into it and try to solve problem as soon as possible

Найкраща відповідь

Yes, if you change python code you need to restart the odoo server. It is the way it works.

If you change xml(view), upgrade your module to see the changes.

Changing js files, reload your browser.

Аватар
Відмінити
Найкраща відповідь

- When .py file is changed. Newer source code must be compiled to get the changes  ---->  Restart server

- Whe .xml file is changed. Database records must be updated to get the change ----> Update (upgrade) your module

- When .js file is changed.  Browser cache must be updated -----> Refresh web page

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
Change position chatter Вирішено
1
серп. 25
126
4
лип. 25
1426
1
лип. 25
737
2
лип. 25
766
1
лип. 25
1902