Most of the command-line options can be specified with a configuration file.
Most of the time, they use similar names with the prefix ( - ) removed and other ( - ) are replaced by _ for e.g. --db-template becomes db_template.ote-. Controllers provide their own extension mechanism, separate from that of models.
Some conversions pattern are below.
--db-filter becomes dbfilter
--no-xmlrpc corresponds to the xmlrpc boolean
logging presets (all options starting with --log- except for --log-handler and --log-db) just add content to log_handler, use that directly in the configuration file
--smtp is stored as smtp_server
--database is stored as dbname
--debug is stored as debug_mode (a boolean)
Note-The default configuration file is $HOME/.openerp_serverrc can be overridden using --config. Specifying --save will save the current configuration state back to that file.
0 Comment(s)