From ae020c90aae78ba9ac65311773006b24ce7262f5 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 4 Apr 2023 17:10:06 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a97281..74dbb02 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Intechnity-com/OdooJsonRpcClient/blob/master/LICENSE.md) [![NuGet package](https://img.shields.io/nuget/v/PortaCapena.OdooJsonRpcClient?color=blue&logo=NuGet&label=NuGet%20Package)](https://www.nuget.org/packages/PortaCapena.OdooJsonRpcClient) [![Nuget](https://img.shields.io/nuget/dt/PortaCapena.OdooJsonRpcClient?logo=NuGet&label=Downloads)](https://www.nuget.org/packages/PortaCapena.OdooJsonRpcClient) -[![example workflow](https://github.com/Intechnity-com/OdooJsonRpcClient/actions/workflows/pr_build.yml/badge.svg)](https://github.com/Intechnity-com/PortaCapena.OdooJsonRpcClient/actions/workflows/pr_build.yml) +[![example workflow](https://github.com/Intechnity-com/OdooJsonRpcClient/actions/workflows/pr_build.yml/badge.svg)](https://github.com/Intechnity-com/OdooJsonRpcClient/actions/workflows/pr_build.yml) [![example workflow](https://github.com/Intechnity-com/OdooJsonRpcClient/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Intechnity-com/OdooJsonRpcClient/actions/workflows/codeql-analysis.yml) ![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/patricoos/54596b8c061e5c3c25b3072822a105a0/raw/code-coverage.json) From 28ea1470b3ea651f106cf45985934ef5726c3422 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 27 Apr 2023 16:35:57 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 74dbb02..c9bccb0 100644 --- a/README.md +++ b/README.md @@ -207,6 +207,18 @@ if(condition) var createResult = await odooRepository.CreateAsync(model); ``` +or +```C# + var model2 = new OdooDictionaryModel("res.partner") { + { "name", "test name" }, + { "country_id", 20 }, + { "city", "test city" }, + { "zip", "12345" }, + { "street", "test address" }, + { "company_type", "company" }, + }; +var createResult = await odooRepository.CreateAsync(model); +``` From 12c90b6a6b797d7dc187dd7e66288f6c0e4da572 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 27 Apr 2023 16:37:05 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c9bccb0..3423198 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,9 @@ or { "street", "test address" }, { "company_type", "company" }, }; -var createResult = await odooRepository.CreateAsync(model); +var odooClient = new OdooClient(TestConfig); + +var createResult = await odooClient.CreateAsync(model2); ```