Skip to content

Commit c061931

Browse files
committed
update: README.md
1 parent c5e7603 commit c061931

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Official JavaScript/TypeScript client for ODXProxy. This SDK provides a simple,
2121
- fields_get
2222
- search_count
2323
- create
24-
- update
24+
- write
2525
- remove
2626
- call_method
2727
- Error Handling
@@ -38,7 +38,7 @@ ODXProxy is a gateway that securely exposes Odoo RPC functionality over HTTPS wi
3838
- Friendly, typed wrapper around ODXProxy endpoints
3939
- Supports both ESM and CommonJS
4040
- Works with TypeScript out of the box (bundled type definitions)
41-
- Covers common Odoo actions: search, search_read, read, fields_get, search_count, create, write (update), unlink (remove), and call_method
41+
- Covers common Odoo actions: search, search_read, read, fields_get, search_count, create, write, unlink (remove), and call_method
4242
- Request IDs are auto-generated with ULID (can be overridden)
4343

4444
## Installation
@@ -155,7 +155,7 @@ All functions return a promise resolving to:
155155
- params: array with a single object of field values (e.g., [{ name: "Acme" }])
156156
- returns: result?: T (typically new record ID)
157157

158-
- update<T = any>(model, params, keyword, id?)
158+
- write<T = any>(model, params, keyword, id?)
159159
- params: [[ids], { field: value }]
160160
- returns: result?: T
161161

@@ -201,12 +201,12 @@ const res = await search_read<{ id: number; name?: string; email?: string }>(
201201
console.log(res.result);
202202
```
203203

204-
- Create, update, remove:
204+
- Create, write, remove:
205205

206206
```ts
207207
const created = await create<number>("res.partner", [{ name: "Acme" }], { context: { tz: "UTC" } });
208208
const id = created.result!;
209-
await update("res.partner", [[id], { name: "ACME Updated" }], { context: { tz: "UTC" } });
209+
await write("res.partner", [[id], { name: "ACME Updated" }], { context: { tz: "UTC" } });
210210
await remove("res.partner", [[id]], { context: { tz: "UTC" } });
211211
```
212212

0 commit comments

Comments
 (0)