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

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

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

如果您登录系统碰到问题,请在微信公众号留言:

OpenERP 7中 openerp-server.conf 的解释



  • 服务器启动配置 – 通用项<br />[code]# 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 "all" 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[/code]<br /><br />XML-RPC / HTTP – XML-RPC 配置<br />[code]# 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[/code]<br /><br />XML-RPC / HTTPS – XML-RPC 安全配置<br />[code]# 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[/code]<br /><br />NET-RPC – NET-RPC 配置<br />[code]# 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[/code]<br /><br />WEB – Web 接口配置<br />[code]# Filter listed database REGEXP<br />dbfilter = .*[/code]<br /><br />测试群组 - 测试配置<br />[code]# 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[/code]<br /><br />日志群组 - 日志配置<br />[code]# 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: "openerp.orm:DEBUG" or "werkzeug:CRITICAL" (default: ":INFO")<br />log_handler = [':INFO']<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[/code]<br /><br />SMTP Group – SMTP 配置<br />[code]# 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[/code]<br /><br />数据库相关配置<br />[code]# 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[/code]<br /><br />国际化选项<br />[code]translate_modules = ['all'][/code]<br /><br />安全相关选项<br />[code]# disable the ability to return the list of databases<br />list_db = True[/code]<br /><br />高级选项<br />[code]# enable debug mode<br />debug_mode = False<br /><br /># specify reference timezone for the server (e.g. Europe/Brussels")<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[/code]<br /><br />多处理选项<br />[code]# 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[/code]<br /><br />更多选项<br />[code]server/openerp/tools/config.py[/code]



  • 服务器启动配置 – 通用项<br />[code]# 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 "all" 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[/code]<br /><br />XML-RPC / HTTP – XML-RPC 配置<br />[code]# 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[/code]<br /><br />XML-RPC / HTTPS – XML-RPC 安全配置<br />[code]# 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[/code]<br /><br />NET-RPC – NET-RPC 配置<br />[code]# 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[/code]<br /><br />WEB – Web 接口配置<br />[code]# Filter listed database REGEXP<br />dbfilter = .*[/code]<br /><br />测试群组 - 测试配置<br />[code]# 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[/code]<br /><br />日志群组 - 日志配置<br />[code]# 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: "openerp.orm:DEBUG" or "werkzeug:CRITICAL" (default: ":INFO")<br />log_handler = [':INFO']<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[/code]<br /><br />SMTP Group – SMTP 配置<br />[code]# 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[/code]<br /><br />数据库相关配置<br />[code]# 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[/code]<br /><br />国际化选项<br />[code]translate_modules = ['all'][/code]<br /><br />安全相关选项<br />[code]# disable the ability to return the list of databases<br />list_db = True[/code]<br /><br />高级选项<br />[code]# enable debug mode<br />debug_mode = False<br /><br /># specify reference timezone for the server (e.g. Europe/Brussels")<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[/code]<br /><br />多处理选项<br />[code]# 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[/code]<br /><br />更多选项<br />[code]server/openerp/tools/config.py[/code]



  • log_handler = [':INFO']<br /><br />这样写没用的,要这样写<br /><br />log_handler = :INFO<br /><br />奇怪但有效,呵呵





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



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



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



  • 感謝分享



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


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待