This library allows you to interact with Odoo Modules ORMs by retrieving all json strings as Java Object
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
-
Download jar files
- odoo-jsonrpc
- odoo-jsonrpc-javadoc - (optional)
- odoo-jsonrpc-sources - (optional)
#!java
OeExecutor executor = OeExecutor.getInstance(SCHEME, HOST, PORT, DATABASE, USERNAME, PASSWORD);
OeUserService service = new OeUserService(executor);
OeUser oeUser = service.findById(id);
JDK6
-
Change skipTests value to false
<skipTests>false</skipTests>
-
Configure test to connect to your Odoo server in /src/test/java/com/odoo/rpc/AbstractBaseTest.java
-
$ mvn clean install
-
Include this library jar to you android, desktop or web application
-
Add to your local repository for use in your builds
$ mvn install:install-file -Dfile=<path-to-odoo-jsonrpc-1.0.jar> $ mvn install:install-file -Dfile=<path-to-odoo-jsonrpc-1.0-javadoc.jar> -DgroupId=org.qfast.odoo-rpc \ -DartifactId=odoo-jsonrpc -Dversion=1.0 -Dpackaging=jar $ mvn install:install-file -Dfile=<path-to-odoo-jsonrpc-1.0-sources.jar> -DgroupId=org.qfast.odoo-rpc \ -DartifactId=odoo-jsonrpc -Dversion=1.0 -Dpackaging=jar
- Maven
- Ahmed El-mawaziny in QFast team
This project is licensed under Apache License - see the LICENSE file for details