Skip to content

Commit 3392b23

Browse files
committed
fix
1 parent 7172f32 commit 3392b23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

odooapiclient/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, protocol='http', host='localhost', port=8069, dbname=None, ss
2020

2121
def authenticate(self, login, pwd):
2222
self._login, self._password = login, pwd
23-
service = auth.Connection(self._url, 'common')
23+
service = service_tools.Connection(self._url, 'common')
2424
self._uid = service.authenticate(self._db, login, pwd, {})
2525
return self._uid
2626

@@ -30,6 +30,6 @@ def search(self, model, domain=False, context=None, **kwargs):
3030
if not kwargs:
3131
kwargs ={}
3232
kwargs.update({'context': context})
33-
service = auth.Connection(self._url, 'object')
33+
service = service_tools.Connection(self._url, 'object')
3434
response = service.models(self._db, self._uid, self._password, model, 'search', domain or [], **kwargs)
3535
return response

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import find_packages
33

44
setup(name='odooapiclient',
5-
version='0.4',
5+
version='0.5',
66
description='Odoo API Client',
77
classifiers=[
88
"Programming Language :: Python",

0 commit comments

Comments
 (0)