Fix False value in filters

This commit is contained in:
Daniel Berteaud 2023-10-25 09:43:10 +02:00
parent ea91623e49
commit 3cf76ea6bb
2 changed files with 3 additions and 1 deletions

View File

@ -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"]

View File

@ -27,7 +27,7 @@ my $conf = {
password => undef,
database => undef,
filters => [
["is_company", "=", "False"]
["is_company", "=", 0]
]
},
dav => {