Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions ai_connection/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=============
Ai Connection
=============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c84ab8e901c6c171d4470eaa67cd2b00f27be03cd7e9c6fc177ea9942856bcfd
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fai-lightgray.png?logo=github
:target: https://github.com/OCA/ai/tree/19.0/ai_connection
:alt: OCA/ai
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/ai-19-0/ai-19-0-ai_connection
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/ai&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This is a module that defines the basic structure of AI Connections.

However, it does not include any extra configurations.

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

This module allows to create basic configuration of AI connections. It
is left for child modules the specific connection, however, it creates a
basic structure that will be used from it. Check on existent modules to
know how to handle it.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/ai/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/ai/issues/new?body=module:%20ai_connection%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Dixmit

Contributors
------------

- `Dixmit <https://www.dixmit.com>`__

- Enric Tobella

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/ai <https://github.com/OCA/ai/tree/19.0/ai_connection>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions ai_connection/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from .client import AiConnectionClient
19 changes: 19 additions & 0 deletions ai_connection/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2026 Dixmit
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Ai Connection",
"summary": """Creates connections to AI systems""",
"version": "19.0.1.0.0",
"license": "AGPL-3",
"author": "Dixmit,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/ai",
"depends": [
"ai_tool",
],
"data": [
"security/ir.model.access.csv",
"views/ai_connection.xml",
],
"demo": [],
}
19 changes: 19 additions & 0 deletions ai_connection/client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2026 Dixmit
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).


class AiConnectionClient:
def handle_message(self, messages=None, **kwargs):
"""Handle a message from the AI system.
Will return a dict with the following information:
{
"message": "",
"tool_calls": [
{
"name": "",
"arguments": {},
}
]
}
"""
raise NotImplementedError("Subclasses must implement this method")
87 changes: 87 additions & 0 deletions ai_connection/i18n/ai_connection.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * ai_connection
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: ai_connection
#: model:ir.actions.act_window,name:ai_connection.ai_connection_act_window
#: model:ir.model,name:ai_connection.model_ai_connection
#: model:ir.ui.menu,name:ai_connection.ai_connection_menu
msgid "AI Connection"
msgstr ""

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__active
msgid "Active"
msgstr ""

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__create_uid
msgid "Created by"
msgstr ""

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__create_date
msgid "Created on"
msgstr ""

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__display_name
msgid "Display Name"
msgstr ""

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__id
msgid "ID"
msgstr ""

#. module: ai_connection
#. odoo-python
#: code:addons/ai_connection/models/ai_connection.py:0
msgid "Iterations reached the maximum allowed (%s)"
msgstr ""

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__kind
msgid "Kind"
msgstr ""

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__write_uid
msgid "Last Updated by"
msgstr ""

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__write_date
msgid "Last Updated on"
msgstr ""

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__model
msgid "Model"
msgstr ""

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__name
msgid "Name"
msgstr ""

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__temperature
msgid "Temperature"
msgstr ""

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__url
msgid "Url"
msgstr ""
90 changes: 90 additions & 0 deletions ai_connection/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * ai_connection
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2026-07-20 09:46+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.15.2\n"

#. module: ai_connection
#: model:ir.actions.act_window,name:ai_connection.ai_connection_act_window
#: model:ir.model,name:ai_connection.model_ai_connection
#: model:ir.ui.menu,name:ai_connection.ai_connection_menu
msgid "AI Connection"
msgstr "Connessione IA"

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__active
msgid "Active"
msgstr "Attiva"

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__create_uid
msgid "Created by"
msgstr "Creato da"

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__create_date
msgid "Created on"
msgstr "Creato il"

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__id
msgid "ID"
msgstr "ID"

#. module: ai_connection
#. odoo-python
#: code:addons/ai_connection/models/ai_connection.py:0
msgid "Iterations reached the maximum allowed (%s)"
msgstr "Le iterazioni hanno raggiunto il massimo consentito (%s)"

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__kind
msgid "Kind"
msgstr "Genere"

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__write_uid
msgid "Last Updated by"
msgstr "Ultimo aggiornamento di"

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__write_date
msgid "Last Updated on"
msgstr "Ultimo aggiornamento il"

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__model
msgid "Model"
msgstr "Modello"

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__name
msgid "Name"
msgstr "Nome"

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__temperature
msgid "Temperature"
msgstr "Temperatura"

#. module: ai_connection
#: model:ir.model.fields,field_description:ai_connection.field_ai_connection__url
msgid "Url"
msgstr "URL"
1 change: 1 addition & 0 deletions ai_connection/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import ai_connection
Loading
Loading