You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To begin, I really thank you for your works on this lib !
I've tried to use it with the version 17 (using lib in development from the branch V17), but there is a check version compability from the startSession() which fail. I've extract the source code and saw that there is an issue by extraction the major and minor version.
For example, my version is "saas~17.4+pre" and the Version class is looking for a '-' into the version string to split and extract the major and minor, which appears -1 in my situation.
I've modified the source code to extract the major / minor value from the new version tag and everything is working well after that.
I recommand to update the Version class extraction method, and maybe change the checkVersionCompatibility() too to be more permissive on major upper version.
privatevoidcheckVersionCompatibility() throwsXmlRpcException, OdooApiException {
if (this.getServerVersion().getMajor() < 8) {
thrownewOdooApiException("Only Odoo Version from v8.x to 17.x are maintained. "
+ "Please choose another version of the library");
}
if (this.getServerVersion().getMajor() > 17) {
System.out.println("Only Odoo Version from v8.x to 17.x are maintained. Some features should not work properly. Please upgrade the version of the library");
}
}
The text was updated successfully, but these errors were encountered:
To begin, I really thank you for your works on this lib !
I've tried to use it with the version 17 (using lib in development from the branch V17), but there is a check version compability from the startSession() which fail. I've extract the source code and saw that there is an issue by extraction the major and minor version.
For example, my version is "saas~17.4+pre" and the Version class is looking for a '-' into the version string to split and extract the major and minor, which appears -1 in my situation.
I've modified the source code to extract the major / minor value from the new version tag and everything is working well after that.
I recommand to update the Version class extraction method, and maybe change the checkVersionCompatibility() too to be more permissive on major upper version.
The text was updated successfully, but these errors were encountered: