CreateIf.OdooSharp.Codegen 0.0.15

dotnet add package CreateIf.OdooSharp.Codegen --version 0.0.15
                    
NuGet\Install-Package CreateIf.OdooSharp.Codegen -Version 0.0.15
                    
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.Codegen" Version="0.0.15" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CreateIf.OdooSharp.Codegen" Version="0.0.15" />
                    
Directory.Packages.props
<PackageReference Include="CreateIf.OdooSharp.Codegen" />
                    
Project file
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.Codegen --version 0.0.15
                    
#r "nuget: CreateIf.OdooSharp.Codegen, 0.0.15"
                    
#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.Codegen&version=0.0.15
                    
Install CreateIf.OdooSharp.Codegen as a Cake Addin
#tool nuget:?package=CreateIf.OdooSharp.Codegen&version=0.0.15
                    
Install CreateIf.OdooSharp.Codegen as a Cake Tool

๐Ÿงฉ OdooGen โ€“ Odoo Model Code Generator for .NET

OdooGen is a .NET CLI & PowerShell tool that helps you generate strongly-typed C# model classes from Odoo metadata via the RPC API.

Use it in microservices or backend integrations โ€” works perfectly with Odoo SaaS (Cloud) and On-Premise environments.

โœจ Features

  • ๐Ÿ” Generate classes for one or all Odoo models
  • โœ… Nullable and typed properties
  • โšก Works without Python modules or Odoo addons
  • ๐Ÿงช PowerShell integration for Visual Studio
  • ๐Ÿงฐ Supports .env-based configuration
  • ๐Ÿงฑ Designed for clean CI/CD usage (e.g. GitHub Actions)

๐Ÿ“ฆ Installation

๐Ÿ”น Option 1 โ€“ .NET Global Tool

dotnet tool install --global CreateIf.OdooSharp.Codegen

Make sure ~/.dotnet/tools is in your PATH.

๐Ÿ”น Option 2 โ€“ NuGet Package (Visual Studio + PowerShell) (preferred)

Install-Package CreateIf.OdooSharp.Codegen

Registers OdooGen-* commands in Package Manager Console.

โš™๏ธ Quickstart

1. Initialize config

OdooGen-Init

Creates a .env file with:

ODOO_CLIENT_URL=https://your.odoo.server
ODOO_CLIENT_DB=your-database
ODOO_CLIENT_USERNAME=your-email@example.com
ODOO_CLIENT_PASSWORD=your-password

๐Ÿ”ง PowerShell Commands (PMC)

Command Description
OdooGen-Init Creates .env configuration file
OdooGen-Check Tests Odoo server & authentication
OdooGen-Generate Generates model class files
OdooGen-Version Displays the installed version
OdooGen-Help Shows CLI usage overview

๐Ÿ”น Examples

# Initialize config
OdooGen-Init

# Check connection
OdooGen-Check

# Generate single model
OdooGen-Generate -Model res.partner

# Generate all models to a specific folder
OdooGen-Generate -All -Output ./Generated

๐Ÿ’ป CLI Usage (dotnet tool)

If installed via dotnet tool, you can use:

dotnet odoogen init
dotnet odoogen check
dotnet odoogen generate --model res.partner
dotnet odoogen generate --all --output ./Generated
dotnet odoogen --version
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.15 155 4/16/2025
0.0.14 135 4/16/2025
0.0.13 87 4/12/2025
0.0.12 66 4/11/2025
0.0.11 63 4/11/2025
0.0.10 114 4/11/2025
0.0.9 109 4/11/2025