Learning about the available developer tools
There are a few tools to ease developers' work. The web interface's Developer Mode, which we introduced earlier in this book, is one of them. A server developer mode option is also available that provides some developer-friendly features. It will be explained in more detail next. After that, we will discuss how to debug code on the server.
Server development options
The Odoo server provides a --dev
option, which enables developer features to speed up the development cycle, such as the following:
- Entering the debugger when an exception is found in an add-on module. This is done by setting a debugger.
pdb
is the default one. - Reloading Python code automatically when a Python code file is saved, avoiding a manual server restart. This can be enabled with the
reload
option. - Reading view definitions directly from XML files, avoiding manual module upgrades. This can be enabled with the
xml
option. - A Python debugging...