官术网_书友最值得收藏!

The server development mode

In Odoo 10, a new option was introduced, providing developer-friendly features. To use them, start the server instance with the additional option --dev=all.

This enables a few handy features to speed up our development cycle. The most important are:

  • Reload Python code automatically once a Python file is saved, avoiding a manual server restart
  • Read view definitions directly from the XML files, avoiding manual module upgrades

The --dev option accepts a comma-separated list of options, although the all option will be suitable most of the time. We can also specify the debugger we prefer to use. By default, the Python debugger, pdb, is used. Some people might prefer to install and use alternative debuggers. The other debuggers supported are ipdb and pudb.

The server developer mode requires an additional dependency to be installed, python3-watchdog. Before you can use it in an Ubuntu/Debian system, install:

$ sudo apt-get install python3-watchdog
For versions before Odoo 11 running on Python 2, install python-watchdog instead.
主站蜘蛛池模板: 南陵县| 巫山县| 常山县| 阜城县| 大同市| 大新县| 泰顺县| 大名县| 金阳县| 北票市| 浏阳市| 凌云县| 乾安县| 南涧| 蓬安县| 五寨县| 丘北县| 石景山区| 杭州市| 石门县| 疏勒县| 溧水县| 鹤壁市| 通渭县| 桐柏县| 资溪县| 德令哈市| 滦南县| 青龙| 体育| 壶关县| 唐山市| 时尚| 石景山区| 大理市| 盐亭县| 吴桥县| 太谷县| 衡水市| 东乌| 越西县|