Skip to content

Commit 186cc7a

Browse files
committed
[FIX]Accept XMLRPC extension as many resources are validating the fact
1 parent 8a215a4 commit 186cc7a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/debortoliwines/odoo/api/OdooXmlRpcProxy.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,10 @@ public OdooXmlRpcProxy(RPCProtocol protocol, String host, int port, RPCServices
104104

105105
XmlRpcClientConfigImpl xmlrpcConfigLogin = new XmlRpcClientConfigImpl();
106106

107-
// Odoo does not support extensions
108-
xmlrpcConfigLogin.setEnabledForExtensions(false);
107+
// Odoo seems to be documented for supporting extensions
108+
//https://doc.odoo.com/v6.0/developer/6_22_XML-RPC_web_services/index.html/
109+
//https://www.odoo.com/fr_FR/forum/aide-1/question/using-openerp-xml-rpc-api-with-java-2872
110+
xmlrpcConfigLogin.setEnabledForExtensions(true);
109111

110112
// The URL is hardcoded and can not be malformed
111113
try {

0 commit comments

Comments
 (0)