Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn



开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号


OpenERP 7中 openerp-server.conf 的解释

  • 服务器启动配置 – 通用项

    # Admin password for creating, restoring and backing up databases<br />admin_passwd = admin<br /><br /># default CSV separator for import and export<br />csv_internal_sep = ,<br /><br /># to compress reports<br />reportgz = False<br /><br /># disable loading demo data for modules to be installed (comma-separated, use &quot;all&quot; for all modules)<br />without_demo = False<br /><br /># Use this for big data importation, if it crashes you will be able to continue at the current state. Provide a filename to store intermediate importation states.<br />import_partial = <br /><br /># file where the server pid will be stored<br />pidfile = None<br /><br /># specify additional addons paths (separated by commas)<br />addons_path = /full/path/to/addons<br /><br /># Comma-separated list of server-wide modules default=web<br />server_wide_modules = None


    # disable the XML-RPC protocol<br />xmlrpc = True<br /><br /># Specify the TCP IP address for the XML-RPC protocol. The empty string binds to all interfaces.<br />xmlrpc_interface = <br /><br /># specify the TCP port for the XML-RPC protocol<br />xmlrpc_port = 8069<br /><br /># Enable correct behavior when behind a reverse proxy<br />proxy_mode = False

    XML-RPC / HTTPS – XML-RPC 安全配置

    # disable the XML-RPC Secure protocol<br />xmlrpcs = True<br /><br /># Specify the TCP IP address for the XML-RPC Secure protocol. The empty string binds to all interfaces.<br />xmlrpcs_interface = <br /><br /># specify the TCP port for the XML-RPC Secure protocol<br />xmlrpcs_port = 8071<br /><br /># specify the certificate file for the SSL connection<br />secure_cert_file = server.cert<br /><br /># specify the private key file for the SSL connection<br />secure_pkey_file = server.pkey

    NET-RPC – NET-RPC 配置

    # enable the NETRPC protocol<br />netrpc = False<br /><br /># specify the TCP IP address for the NETRPC protocol<br />netrpc_interface = <br /><br /># specify the TCP port for the NETRPC protocol<br />netrpc_port = 8070

    WEB – Web 接口配置

    # Filter listed database REGEXP<br />dbfilter = .*

    测试群组 - 测试配置

    # Launch a YML test file.<br />test_file = False<br /><br /># If set, will save sample of all reports in this directory.<br />test_report_directory = False<br /><br /># Enable YAML and unit tests.<br />test_enable = False<br /><br /># Commit database changes performed by YAML or XML tests.<br />test_commit = False

    日志群组 - 日志配置

    # file where the server log will be stored<br />logfile = None<br /><br /># do not rotate the logfile<br />logrotate = True<br /><br /># Send the log to the syslog server<br />syslog = False<br /><br /># setup a handler at LEVEL for a given PREFIX. An empty PREFIX indicates the root logger. This option can be repeated. Example: &quot;openerp.orm:DEBUG&quot; or &quot;werkzeug:CRITICAL&quot; (default: &quot;:INFO&quot;)<br />log_handler = &#91;&#039;:INFO&#039;]<br /><br /># specify the level of the logging. Accepted values: info, debug_rpc, warn, test, critical, debug_sql, error, debug, debug_rpc_answer, notset<br />log_level = info

    SMTP Group – SMTP 配置

    # specify the SMTP email address for sending email<br />email_from = False <br /><br /># specify the SMTP server for sending email<br />smtp_server = localhost <br /><br /># specify the SMTP port<br />smtp_port = 25 <br /><br /># specify the SMTP server support SSL or not<br />smtp_ssl = False <br /><br /># specify the SMTP username for sending email<br />smtp_user = False<br /><br /># specify the SMTP password for sending email<br />smtp_password = False


    # specify the database name<br />db_name = False<br /><br /># specify the database user name<br />db_user = openerp<br /><br /># specify the database password<br />db_password = False<br /><br /># specify the pg executable path<br />pg_path = None<br /><br /># specify the database host<br />db_host = False<br /><br /># specify the database port<br />db_port = False<br /><br /># specify the the maximum number of physical connections to posgresql<br />db_maxconn = 64<br /><br /># specify a custom database template to create a new database<br />db_template = template1


    translate_modules = &#91;&#039;all&#039;]


    # disable the ability to return the list of databases<br />list_db = True


    # enable debug mode<br />debug_mode = False<br /><br /># specify reference timezone for the server (e.g. Europe/Brussels&quot;)<br />timezone = False<br /><br /># Force a limit on the maximum number of records kept in the virtual osv_memory tables. The default is False, which means no count-based limit. <br />osv_memory_count_limit = False <br /><br /># Force a limit on the maximum age of records kept in the virtual osv_memory tables. This is a decimal value expressed in hours, and the default is 1 hour.<br />osv_memory_age_limit = 1.0 <br /><br /># Maximum number of threads processing concurrently cron jobs (default 2)<br />max_cron_threads = 2<br /><br /># Use the unaccent function provided by the database when available.<br />unaccent = False


    # Specify the number of workers, 0 disable prefork mode.<br />workers = 0<br /><br /># Maximum allowed virtual memory per worker, when reached the worker be reset after the current request (default 671088640 aka 640MB)<br />limit_memory_soft = 671088640<br /><br /># Maximum allowed virtual memory per worker, when reached, any memory allocation will fail (default 805306368 aka 768MB)<br />limit_memory_hard = 805306368<br /><br /># Maximum allowed CPU time per request (default 60)<br />limit_time_cpu = 60<br /><br /># Maximum allowed Real time per request (default 120)<br />limit_time_real = 120<br /><br /># Maximum number of request to be processed per worker (default 8192)<br />limit_request = 8192



  • log_handler = [':INFO']


    log_handler = :INFO


  • 嘿,我至少还翻译了一点,不是copy!没什么尊重不尊重的。你知道的资源没有share出来,挑刺谁不会!

  • 支持楼主!但是加一个链接会更好。

  • 分享不错,加条链接会更合理,方便我们看到原著,与peter所见略同

  • 感謝分享

  • 感谢楼主分享。走自己的路,让那些狗去叫吧!

Log in to reply