diff --git a/config.yml.sample b/config.yml.sample index 81160e2..61f9e4b 100644 --- a/config.yml.sample +++ b/config.yml.sample @@ -12,6 +12,8 @@ odoo: 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"] diff --git a/odoo2carddav b/odoo2carddav index a1d1e79..2eff151 100755 --- a/odoo2carddav +++ b/odoo2carddav @@ -27,7 +27,7 @@ my $conf = { password => undef, database => undef, filters => [ - ["is_company", "=", "False"] + ["is_company", "=", 0] ] }, dav => {