Skip to content

Commit 25b15ea

Browse files
committed
[FIX] Some methods returns nothing.
1 parent 9bed526 commit 25b15ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

odoolib/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def json_rpc(url, fct_name, params):
118118
result = result_req.json()
119119
if result.get("error", None):
120120
raise JsonRPCException(result["error"])
121-
return result["result"]
121+
return result.get("result", False)
122122

123123
class JsonRPCConnector(Connector):
124124
"""

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535

3636
setup(name='odoo-client-lib',
37-
version='1.2.0',
37+
version='1.2.1',
3838
description='Odoo Client Library allows to easily interact with Odoo in Python.',
3939
author='Nicolas Vanhoren',
4040
author_email='',

0 commit comments

Comments
 (0)