Ir al contenido
Menú
Se marcó esta pregunta

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

Avatar
Descartar
Mejor respuesta

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

Avatar
Descartar
Mejor respuesta

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

Avatar
Descartar
Autor

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.

Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 24
9668
1
sept 23
2650
1
ago 25
3288
1
abr 24
3079
0
oct 23
2436