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

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.

Related Posts Відповіді Переглядів Дія
2
лип. 24
9670
1
вер. 23
2650
1
серп. 25
3288
1
квіт. 24
3080
0
жовт. 23
2436