Refactore trytond.conf to allow extention
The trytond.conf file should use more section for each kind of configuration:
[jsonrpc]
listen = localhost:8000
data =
[xmlrpc]
listen = …
[database]
uri = postgresql://localhost:5433
data =
list = true
retry = 5
language =
[ssl]
privatekey =
certificate =
[smtp]
server =
port =
ssl =
tls =
user =
password =
default_from_email =
[session]
timeout =
[report]
unoconv =
And module custom option will be:
[product]
unit_price_digits = 4
Behavior:
if ssl is set, all rpc are ssl enabled
To remove:
- pg_path
- admin_passwd (replace by trytond user password check if possible)
- pidfile and logfile are already in command line
- multi_server should always be on
- cron should be a command line because we could want to start many server but
only one with cron
- auto_reload should also be a command line