@asmozia/odoo-client
v0.5.0
Published
This is a library for interacting with the Odoo API. It was generated with [Nx](https://nx.dev).
Downloads
7
Readme
Odoo API
This is a library for interacting with the Odoo API. It was generated with Nx.
Installation
Use the package manager npm to install odoo-client.
pnpm install odoo-client
Usage
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));
Building
Run the following command to build the library:
nx build odoo-client
Running Tests
To execute the unit tests via Vitest, run the following command:
nx test odoo-client
Contributing
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.