OdooWiki OCA HUB

AI - Generate text using Ollama

ai_oca_native_generate_ollama folder_open OCA/ai open_in_new
Uncategorised License: AGPL-3

This module replaces the integration of AI from Odoo to ChatGPT through Odoo by a locally controlled system.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

This module redirects the AI text generation feature of the Odoo HTML editor to a local Ollama server instead of the default OpenAI service. Users can generate text in the editor using their own Ollama model and connection settings.

When installed, this module changes how the AI text generation button in the Odoo HTML editor works. Instead of sending requests to OpenAI through Odoo's IAP service, it sends them to an Ollama server that you configure.

  • The module adds system parameters that let administrators set the Ollama server address, the model name, and optional HTTP headers. These are stored in Odoo's configuration parameters under names starting with ai_oca_native_generate_ollama.
  • If the connection or model is not configured, the editor falls back to the original Odoo AI behavior.
  • When configured, the editor's generate text feature sends the prompt and conversation history to the Ollama server and returns the generated text directly into the editor.
  • The module depends on the html_editor module and requires the Python ollama library to be installed on the server.
  • It does not add any new menus, models, or database tables. It only overrides the existing text generation route in the HTML editor controller.

This is useful for businesses that want to keep AI text generation local and private, using their own Ollama instance instead of a cloud service.

Depends on

html_editor

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 18.0

To configure this module, you need to create 2 parameters:

  • ai_oca_native_generate_ollama.connection: Connection to your ollama
  • ai_oca_native_generate_ollama.model: Model to use

Alternatively, you can add headers by using the parameter *ai_oca_native_generate_ollama.headers". It expects a dictionary.

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.