Odoo 配置文件中的 xmlrc_port 和 http_port 参数有什么区别?

use*_*677 4 odoo odoo-12

Odoo 配置文件中使用的xmlrc_port和参数有什么区别?http_port

Vei*_*kko 6

没有任何。Odoo 12 仅使用http_port.

http_port在版本 11 中引入,在此之前,参数为xmlrc_port.

所以,你应该使用

  • http_port对于 Odoo >= 11
  • xmlrc_port对于 Odoo < 11

在 Odoo 12 中,保留是为了向后兼容,请参阅源代码中从到 的xmlrc_port映射:https: //github.com/odoo/odoo/blob/13.0/odoo/tools/config.py,第 147 行:xmlrc-porthttp_port

group.add_option("--xmlrpc-port", dest="http_port", type="int", help=hidden)
Run Code Online (Sandbox Code Playgroud)

你可以找到文档