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

Hi,


I want to do local Odoo development on Windows.


No problem installing Odoo, Enterprise and Custom modules.


I would like to activate the development options to be more efficient, such as the autoreload of Python during a change.

However, when I activate "--dev=reload" when launching my server, it listens to the files and triggers when a python code is changed, but stops the server right after... I then have to restart it.


Do you have any advice or a particular configuration to make this work correctly?


Thanks in advance

아바타
취소
베스트 답변

Hello Sylvain,



  The --dev=reload flag in Odoo can sometimes cause issues on Windows due to file locking or monitoring inconsistencies.

  Here are a few steps to try and resolve this:

  First, ensure that your Odoo installation directory and custom modules are excluded from any real-time antivirus scanning. This can prevent file locking issues.

  Second, try using a different development tool like VS Code with the Odoo Debugger extension. This can provide better stability and debugging features on Windows.

  Third, verify that your Python installation is correctly configured and that all necessary dependencies are installed. Sometimes, missing or outdated dependencies can cause unexpected behavior with the --dev=reload flag.

  Finally, consider using a virtual machine with a Linux environment for development. This often provides a more stable and consistent experience for Odoo development, especially when using development flags.


For personalized assistance:
https://www.pragtech.co.in/contact-us-mql.html

아바타
취소
베스트 답변

I have the same issue did you find a fix for it?

아바타
취소
작성자

Yes, I have a full installation with WSL (Linux subsystem), so I can install inotify and get a smooth dev environment

Did not expect an answer since this is 2 years old, thanks!
Would you mind sharing how you have your development environment set up? I feel like I've been fighting with my dev environment more than I have been with creating the modules itself.

관련 게시물 답글 화면 활동
2
7월 24
9677
1
9월 23
2653
1
8월 25
3316
1
4월 24
3092
0
10월 23
2443