콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
26122 화면

 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? 

아바타
취소

For configuring the watchdog with Odoo, see this: https://www.youtube.com/watch?v=SKwl_pSBy9c

베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
0
5월 25
123
1
5월 25
295
1
5월 25
387
0
4월 25
2
1
4월 25
431