Skip to content

Commit

Permalink
[IMP] add compatibility to odoo v15
Browse files Browse the repository at this point in the history
  • Loading branch information
saxomanu committed Jun 6, 2022
1 parent c213a5f commit dfaaf69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/odoojava/api/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ public void startSession() throws Exception {

private void checkVersionCompatibility() throws XmlRpcException, OdooApiException {

if (this.getServerVersion().getMajor() < 8 || this.getServerVersion().getMajor() > 14) {
throw new OdooApiException("Only Odoo Version from v8.x to 14.x are maintained. "
if (this.getServerVersion().getMajor() < 8 || this.getServerVersion().getMajor() > 15) {
throw new OdooApiException("Only Odoo Version from v8.x to 15.x are maintained. "
+ "Please choose another version of the library");
}

Expand Down

0 comments on commit dfaaf69

Please sign in to comment.