Odoo开发之开发者模式

2018-11-01 2196点热度 0条评论

--dev <feature,feature,...,feature>

  • all  以下功能全部激活
  • xml  直接从xml文件中读取模板。而不是从数据库。
  • reload  更新python文件时重新启动服务器(需要watchdog包)
  • qweb 当模版节点包含t-debug='debugger',自动中断调试。
  • (i)p(u)db: start the chosen python debugger in the code when an unexpected error is raised before logging and returning the error.

官方帮助:
https://www.odoo.com/documentation/10.0/reference/cmdline.html

Bash
pip install watchdog python odoo-bin -c dev.conf --dev all

Jalena

原创内容,转载请注明出处! 部分内容来自网络,请遵守法律适用!

文章评论