This is a library for interacting with the Odoo API. It was generated with Nx.
Use the package manager npm to install odoo-client.
npm install odoo-client
import { OdooClient } from 'odoo-client';
const api = new OdooClient();
// Use the api
api
.search('rh.employee', ['name', 'John'], { limit: 10 })
.then((users) => console.log(users))
.catch((error) => console.error(error));
Run the following command to build the library:
nx build odoo-client
To execute the unit tests via Vitest, run the following command:
nx test odoo-client
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.