36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
---
|
|
|
|
# vim: syntax=yaml
|
|
|
|
odoo:
|
|
# URL of the Odoo server
|
|
url: https://odoo.example.org
|
|
# User and password (or API key) for Odoo
|
|
user: odoo2carddav
|
|
password: <password or API key>
|
|
# The name of the database to target on odoo server
|
|
database: odoo
|
|
# A list of filters to limit contacts returned by odoo
|
|
# Note : filters can only be set in a config file (not available as env var or cli arg)
|
|
# Also, if you need to set a false value, use 0, else perl will interpret false as a string,
|
|
# which will evaluate as true (for example, use ["is_company", "=", 0])
|
|
filters:
|
|
- ["country_code", "=", "FR"]
|
|
- ["name", "ilike", "berteaud"]
|
|
|
|
dav:
|
|
# Url of the dav server
|
|
url: https://zimbra.example.org/dav/odoo2carddav%example.org/Odoo
|
|
# User and password for the carddav server
|
|
user: odoo2carddav
|
|
password: <password for the dav server>
|
|
# If true, then contacts which exists on the carddav server, but not in odoo will be deleted
|
|
delete: true
|
|
|
|
path:
|
|
# Local directory where the script will build vcards. Defaults is to use mkdtemp using /tmp/odoo2carddav.XXXXX as template
|
|
workdir: /tmp/odoo2carddav
|
|
# If True, vcards won't be deleted from the workdir when the script is finished
|
|
keep_vcard: true
|
|
|