# rpc_odoo

> RPC for odoo

Latest version **1.0.0** (published 2022-11-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install rpc_odoo
pnpm add rpc_odoo
yarn add rpc_odoo
bun add rpc_odoo
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-11-15 |
| First published | 2022-11-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | S. Parkhomenko |
| Maintainers | parhomenkopsv |

## Links

- npm: https://www.npmjs.com/package/rpc_odoo
- npm.io page: https://npm.io/package/rpc_odoo

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^1.1.3
- [node-fetch](https://npm.io/package/node-fetch.md) ^3.2.10

## Recent versions

- 1.0.0 (latest) — 2022-11-15

## README

# rpc_odoo
RPC for odoo using Node.js
## Installation
>npm install rpc_odoo
## Usage
add package to your project

> const Odoo = require('rpc_odoo');
## Contributing
1. Add package to your project
2. Enter your odoo server config
>const connect = new Odoo("login", "password", "name_db", "http://127.0.0.1:8069/jsonrpc");
3. Find user_id for your user 
 >const user_id = Odoo.login() 
4. Then use methods what you need (search, read, search_count, search_read, create, update, delete, fields_get)
5. For example for create  

> let create = await connect.create(
     user_id,
     'res.partner', [{"name": "New partner"}]);
     
6. For Update 

> let update = await connect.update(
    user_id,
    'res.partner', [41], {"name": "New name partner"} );

---
_Source: https://npm.io/package/rpc_odoo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
