Skip to Content

Contributors

Re: Development environment

On Thu, Aug 17, 2023 at 5:42 AM Sylvain Caron <notifications@odoo-community.org> wrote:
However I have other problems like updating the code live, I have to constantly restart the server. I saw that there were default parameters for development like: --dev=reload using the "watchdog" lib, except that after 2 3 refresh the server shuts down.

I find that the shut down is specifically caused by saving a second time in quick succession; essentially triggering a dev reload while one is already in progress. Work slower or fight the habit to save. ;-)
 
Same for Owl components, I find it crazy that in 2023 there is no auto refresh, so I am looking for the most optimized solution for Odoo module development.

For this one, I either test as admin in full debug assets mode (add ?debug=assets to your URL) or I manually regenerate the assets bundle in ?debug=1 mode with Bug icon > Regenerate Assets Bundles.
 
The development by Docker is perhaps simpler?

I went the container route with https://hub.docker.com/_/odoo/. You can just mount your custom modules and off you go and dev reload still works.

by Adam Heinz - 05:36 - 17 Aug 2023

Reference

  • Development environment
    Hi, 

    My name is Sylvain.

    I would like to know about creating an Odoo local environment, because I want to be more efficient in the development of the modules, than on Odoo.sh.
    I can already launch my server with Odoo, Odoo enterprise and my custom_addons.

    However I have other problems like updating the code live, I have to constantly restart the server. I saw that there were default parameters for development like: --dev=reload using the "watchdog" lib, except that after 2 3 refresh the server shuts down.

    I have already used Odoo.sh and its editor, and Python recompiles well with each change, so this is doable

    Same for Owl components, I find it crazy that in 2023 there is no auto refresh, so I am looking for the most optimized solution for Odoo module development.

    Do you have an installation guide for local development?
    The development by Docker is perhaps simpler?

    Some additional information:

    I am on windows
    VScode, and I'm using vscode launch.js configs for Odoo server

    Thanks in advance

    Sans virus.www.avast.com

    by Sylvain - 11:41 - 17 Aug 2023