diff --git a/README.md b/README.md
index b474cc0..b018c13 100644
--- a/README.md
+++ b/README.md
@@ -118,3 +118,17 @@ saveToDatabaseForTrackingPurpose(newPartner.getID());
* https://sourceforge.net/p/openerpjavaapi/wiki/Dependencies/
* https://sourceforge.net/p/openerpjavaapi/wiki/Examples/
+
+
+# Known bugs
+
+Since v14, the render method is now private.
+So printing is no more possible with rpc call.
+For the references :
+* https://github.com/odoo/odoo/issues/78528
+* https://github.com/OCA/odoorpc/issues/65
+
+A workaround is to create a module to make the render method public until we implement this method https://github.com/OCA/odoorpc/issues/88#issuecomment-1907870776
+a better workaround is to propose a PR in this repo to implement the missing part
+
+
diff --git a/pom.xml b/pom.xml
index 216e389..62a40c1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
com.odoojavaodoo-java-api
- 3.2.2
+ 3.3.3jarodoo-java-api
diff --git a/src/main/java/com/odoojava/api/Session.java b/src/main/java/com/odoojava/api/Session.java
index 385c321..103b630 100644
--- a/src/main/java/com/odoojava/api/Session.java
+++ b/src/main/java/com/odoojava/api/Session.java
@@ -30,7 +30,6 @@
import com.odoojava.api.OdooXmlRpcProxy.RPCProtocol;
import com.odoojava.api.OdooXmlRpcProxy.RPCServices;
import com.googlecode.jsonrpc4j.*;
-import com.googlecode.jsonrpc4j.JsonRpcClientException;
/**
* *
@@ -183,11 +182,10 @@ public void startSession() throws Exception {
private void checkVersionCompatibility() throws XmlRpcException, OdooApiException {
- if (this.getServerVersion().getMajor() < 8 || this.getServerVersion().getMajor() > 15) {
- throw new OdooApiException("Only Odoo Version from v8.x to 15.x are maintained. "
+ if (this.getServerVersion().getMajor() < 8 || this.getServerVersion().getMajor() > 16) {
+ throw new OdooApiException("Only Odoo Version from v8.x to 16.x are maintained. "
+ "Please choose another version of the library");
}
-
}
/**
@@ -222,12 +220,15 @@ int authenticate() throws XmlRpcException, Exception {
// JSONRPC part
try {
- // id = authenticate_json_rpc();
+ id = authenticate_json_rpc();
System.out.println("json rpc login");
} catch (JsonRpcClientException e) {
- System.out.println("Json rpc issue possibly caused by https://github.com/OCA/server-tools/issues/1237");
- e.printStackTrace();
+ if (this.getServerVersion().getMajor() == 10){
+ System.out.println("ODOO 10.0 : Json rpc issue possibly caused by https://github.com/OCA/server-tools/issues/1237");
+ e.printStackTrace();
+ System.out.println("ODOO 10.0 : if the trace match the issue, you could ignore this message");
+ }
} catch (Throwable e) {
System.out.println("General exception");
e.printStackTrace();
@@ -246,17 +247,22 @@ private int authenticate_json_rpc() throws Throwable {
// TODO: fast and uggly implementation of json rpc, has to be refactored in the
// future
- Map articleMapOne = new HashMap<>();
- articleMapOne.put("password", password);
- articleMapOne.put("login", userName);
- articleMapOne.put("db", databaseName);
+ jsonclient.setServiceUrl(getJsonurl("jsonrpc"));
+ Map jsonparams = new HashMap<>();
+ jsonparams.put("service", "common");
+ jsonparams.put("method", "login");
- // Object[] result = call_json_rpc(, "common", "login", articleMapOne);
+ ArrayList