CreateIf.OdooSharp
0.0.8
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CreateIf.OdooSharp --version 0.0.8
NuGet\Install-Package CreateIf.OdooSharp -Version 0.0.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CreateIf.OdooSharp" Version="0.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CreateIf.OdooSharp" Version="0.0.8" />
<PackageReference Include="CreateIf.OdooSharp" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CreateIf.OdooSharp --version 0.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CreateIf.OdooSharp, 0.0.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=CreateIf.OdooSharp&version=0.0.8
#tool nuget:?package=CreateIf.OdooSharp&version=0.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
OdooSharp JSON-RPC C# ORM Client
A type-safe, extensible C# client for interacting with the Odoo JSON-RPC API.
Supports full CRUD, filtering, paging, and model-level attributes for clean data access.
๐ Features
- ๐ Auth via JSON-RPC (
/web/session/authenticate
) - ๐ Generic
search_read
with domain, fields, paging, sorting - ๐
create
, โ๏ธwrite
, ๐๏ธunlink
, ๐ฅread
(by ID) - ๐ง Model-level
[OdooModel(...)]
attribute for smart mapping - ๐ Paged queries
- โ
Typed response classes via
System.Text.Json
๐ฆ Installation
Just include the nuget package CreateIf.Odoo
and your typed model classes into your project.
Requires .netstandard2.1 or compatible with HttpClient
, System.Text.Json
.
๐ ๏ธ Configuration
var options = new OdooClientOptions
{
Url = "https://your-odoo-instance.odoo.com",
Database = "your-database-name",
Username = "your-user@example.com",
Password = "your-password"
};
var client = new OdooClient(options);
๐งช Usage
var client = new OdooClient(new OdooClientOptions
{
Url = "https://your-odoo-url.odoo.com",
Database = "your-db",
Username = "you@example.com",
Password = "your-password"
});
if (await client.AuthenticateAsync())
{
Console.WriteLine("Authenticated.");
var models = await client.GetModelsAsync();
// you can use your custom defined models too
var quotes = await client.SearchReadAsync<Lieferangebot>(
model: "x_lieferangebot",
domain: new object[] { new object[] { "x_status", "=", "offen" } },
fields: new[] { "x_name", "x_preis", "x_status" },
limit: 100
);
}
else
{
Console.WriteLine("Authentication failed.");
}
The custom model class
[OdooModel("x_lieferangebot", "[[\"x_status\", \"=\", \"offen\"]]")]
public class Lieferangebot
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("x_name")]
public string Name { get; set; }
[JsonPropertyName("x_preis")]
public float Preis { get; set; }
[JsonPropertyName("x_status")]
public string Status { get; set; }
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- CreateIf.OdooSharp.Configuration (>= 0.0.8)
- System.Text.Json (>= 8.0.5)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on CreateIf.OdooSharp:
Package | Downloads |
---|---|
CreateIf.OdooSharp.DependencyInjection
DI for the OdooSharp client. |
|
CreateIf.OdooSharp.Codegen
CLI + PMC Tools for Odoo Integration |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.15 | 173 | 4/16/2025 |
0.0.14 | 153 | 4/16/2025 |
0.0.13 | 146 | 4/12/2025 |
0.0.12 | 120 | 4/11/2025 |
0.0.11 | 120 | 4/11/2025 |
0.0.10 | 138 | 4/11/2025 |
0.0.9 | 146 | 4/11/2025 |
0.0.8 | 163 | 4/11/2025 |
0.0.7 | 171 | 4/11/2025 |
0.0.6 | 145 | 4/11/2025 |
0.0.5 | 138 | 4/11/2025 |
0.0.4 | 164 | 4/10/2025 |
0.0.3 | 186 | 4/10/2025 |
0.0.2 | 169 | 4/9/2025 |
0.0.1 | 143 | 4/4/2025 |