Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Extra Tools
  3. NK OpenAI Base v 17.0
  4. Sales Conditions FAQ

NK OpenAI Base

by NK Interactive https://www.odoo.com
Odoo
v 17.0 Third Party 3
Download for v 17.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 581
Technical Name nk_openai_base
LicenseLGPL-3
Websitehttps://www.odoo.com
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 581
Technical Name nk_openai_base
LicenseLGPL-3
Websitehttps://www.odoo.com

🤖 NK OpenAI Base

Centralized OpenAI Integration for Odoo v17

Base module providing centralized OpenAI API configuration and service for all NK modules. Required for NK AI Report Builder and other NK AI-powered modules.

Version 17.0.1.0.0 | Compatible with Odoo Community v17.0 | Enterprise edition not required

⚠️ IMPORTANT: API Requirements and Costs

🔑 API Key Required

This module REQUIRES a valid OpenAI API key to function.

You must obtain your own API key from OpenAI Platform. The module price does NOT include OpenAI API usage costs.

💰 Who Pays for API Usage?

OpenAI usage costs are NOT included in the module price.

You are responsible for all OpenAI API costs. Usage is billed directly by OpenAI based on:

  • Model selected (GPT-4, GPT-3.5, etc.)
  • Number of tokens used (input + output)
  • Your OpenAI account's pricing tier

Without valid API credits, the module will not function. The app requires an active OpenAI account with available credits.

🔒 Data Privacy and Security

What data is sent to OpenAI?

Yes, data is sent externally to OpenAI's servers. The following information is transmitted:

  • Model metadata: Field names, types, and relationships (up to 3 levels deep)
  • User queries: Your natural language report requests
  • Context information: Date ranges and additional context you provide
  • System prompts: Instructions for SQL generation

⚠️ Actual database records are NOT sent to OpenAI. Only metadata (field names, types) and your queries are transmitted.

Is it safe? OpenAI uses industry-standard encryption (HTTPS/TLS) for all API communications. However, you should review OpenAI's Privacy Policy and Data Usage Policies to understand how they handle API data.

📋 Overview

NK OpenAI Base is a foundational module that provides centralized OpenAI API configuration and service for all NK modules. This module eliminates the need for each module to manage its own OpenAI settings, providing a single point of configuration and a unified service interface.

By using this base module, other NK modules can easily integrate AI-powered features without duplicating configuration code or managing API keys separately.

✨ Features

🔑 Centralized API Key Management

Single configuration point for OpenAI API key. All NK modules using AI features share the same configuration.

⚙️ Flexible Configuration

Configure model selection, base URL, timeout, and token limits. Support for OpenAI and compatible APIs (Ollama, LocalAI).

🔌 Unified Service Interface

Provides a standard service interface that all NK modules can use for AI functionality.

🛡️ Security

API key is stored securely with proper access controls. Only system administrators can configure settings.

📥 Installation

Prerequisites

  • Odoo Version: 17.0 Community Edition or Enterprise Edition
  • OpenAI API Key: Get your API key from OpenAI Platform

Installation Steps

  1. Install the Module

    Install NK OpenAI Base from the Odoo App Store or from the repository.

  2. Configure OpenAI Settings

    Navigate to Settings → OpenAI Integration section.

  3. Enable OpenAI Integration

    Check the "Enable OpenAI Integration" checkbox.

  4. Enter API Key

    Enter your OpenAI API key in the "OpenAI API Key" field.

  5. Configure Model and Settings

    Select your preferred model and adjust timeout/token limits as needed.

⚙️ Configuration

Configure OpenAI settings through the Odoo Settings menu. Navigate to Settings → OpenAI Integration to access the configuration panel.

OpenAI Configuration Settings

💻 Usage

For Module Developers

Other NK modules can use this base module to access OpenAI functionality:

# In your module's __manifest__.py 'depends': ['nk_openai_base'], # In your Python code openai_service = self.env['nk.openai.service'] config = openai_service.get_openai_config() # Call OpenAI API response = openai_service.call_openai( prompt="Your prompt here", system_message="You are a helpful assistant" )

Service Methods

get_openai_config()

Returns dictionary with OpenAI configuration (enabled, api_key, model, base_url, timeout, max_tokens)

call_openai(prompt, system_message)

Calls OpenAI API with the provided prompt and returns the response text

parse_json_response(response_text)

Parses JSON from OpenAI response, handling markdown code blocks

✅ Compatibility

Odoo Versions

  • ✅ Odoo Community v17.0 (Fully tested and supported)
  • ✅ Odoo Enterprise v17.0 (Compatible, but Enterprise edition not required)

✓ Compatible with Odoo Community v17.0
✓ Enterprise edition NOT required

Dependencies

  • ✅ base (core Odoo)
  • ✅ openai Python package (external - install with: pip install openai)
  • ✅ Valid OpenAI API key (required for functionality)

📝 Release Notes

Version 17.0.1.0.0 (2025-12-16)

✨ New Features

  • Initial release of NK OpenAI Base module
  • Centralized OpenAI API configuration
  • Support for 60+ OpenAI models
  • Chat Completions and Responses API support
  • Organization and Project ID support
  • Custom model name support
  • Rate limit handling with retry logic

🔧 Improvements

  • Enhanced error messages with TPM/RPM details
  • Better context length exceeded handling
  • Improved API response parsing
  • Request ID tracking for debugging

🐛 Fixes

  • Fixed URL normalization and validation
  • Fixed base URL joining with endpoints
  • Improved error messages

🗑️ Removed

  • Removed manual requests library usage
  • Removed temperature parameter

⚠️ Current Limitations

🔧 Technical

  • Requires external Python package: openai
  • API rate limits depend on OpenAI account tier
  • Context window limits vary by model

⚙️ Configuration

  • API key must be configured manually
  • Model selection limited to predefined list
  • Custom models require manual entry

🚀 Future Planning

Planned Improvements

We're continuously working to improve NK OpenAI Base. Planned improvements include:

  • Enhanced rate limit management with automatic retry strategies
  • Support for streaming responses
  • Built-in prompt templates library
  • Usage analytics and cost tracking
  • Multi-provider support (Anthropic, Google, etc.)
  • Advanced caching mechanisms
  • Batch request support
  • Improved error recovery and fallback mechanisms

Support & Resources

Need help? Have questions? We're here to assist you!

📧 Support

Contact our support team for assistance with installation, configuration, or any questions.

📚 Documentation

Comprehensive documentation is available in the module's README file and inline help texts.

© 2025 NK Interactive. All rights reserved.
NK OpenAI Base for Odoo v17 | License: LGPL-3 (GNU Lesser General Public License v3.0)

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with