Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
muflone committed Jun 5, 2021
1 parent 066de52 commit e285ea5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/contacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
username=os.environ['ODOO_USERNAME'],
password=os.environ['ODOO_PASSWORD'],
language='en_GB')
# Search some records by name
# Filters by name and excluding an explicit ID
filters = [BooleanOperator.AND,
Filter(field='name',
compare_type=CompareType.CONTAINS,
Expand All @@ -46,6 +46,7 @@
compare_type=CompareType.NOT_EQUAL,
value=173806)
]
# Search some records by name
results = api.search(filters=filters)
print('search', len(results), results)

Expand Down

0 comments on commit e285ea5

Please sign in to comment.