Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
a05985d
[ADD] ai_tool: port module to 19.0
volkantasci Aug 13, 2026
d9a31b4
[ADD] ai_connection: port module to 19.0
volkantasci Aug 13, 2026
780cbc0
[ADD] ai_document_extraction: scaffold
volkantasci Aug 6, 2026
566a66d
[IMP] ai_document_extraction: OCA CI compliance (prettier XML, genera…
volkantasci Aug 6, 2026
ddb6fad
[IMP] ai_document_extraction: settings model and view
volkantasci Aug 6, 2026
99a493c
[IMP] ai_document_extraction: refine settings (setting id, threshold …
volkantasci Aug 6, 2026
7ddcc87
[ADD] ai_document_extraction: image preprocessor service
volkantasci Aug 6, 2026
1e6b823
[FIX] ai_document_extraction: ruff UP031 format specifier
volkantasci Aug 6, 2026
17018c2
[FIX] ai_document_extraction: use relative import in tests (pylint W8…
volkantasci Aug 6, 2026
763265b
[IMP] ai_document_extraction: harden image preprocessor (imwrite chec…
volkantasci Aug 6, 2026
0a27e74
[ADD] ai_document_extraction: OCR engine service with layout tags
volkantasci Aug 6, 2026
0008766
[IMP] ai_document_extraction: cache test + height guard for OCR engine
volkantasci Aug 6, 2026
937c0bb
[ADD] ai_document_extraction: LLM extractor service
volkantasci Aug 6, 2026
758d04c
[IMP] ai_document_extraction: robust JSON parsing and LLM client tests
volkantasci Aug 6, 2026
a98fdbe
[ADD] ai_document_extraction: account.move integration and views
volkantasci Aug 6, 2026
5b56402
[IMP] ai_document_extraction: harden account.move integration
volkantasci Aug 6, 2026
1a4dde8
[ADD] ai_document_extraction: extraction wizard for partner fallback
volkantasci Aug 6, 2026
b13bb9f
[IMP] ai_document_extraction: wizard ACL, empty-partner guard, review…
volkantasci Aug 6, 2026
aee351b
[IMP] ai_document_extraction: add i18n POT template
volkantasci Aug 6, 2026
567f9f4
[IMP] ai_document_extraction: final polish for OCA PR
volkantasci Aug 6, 2026
6ac885e
[FIX] ai_document_extraction: skip cv2 test in CI without libGL
volkantasci Aug 6, 2026
1133eb9
[FIX] ai_document_extraction: skip pre-processor test when cv2 unimpo…
volkantasci Aug 6, 2026
df27181
[FIX] ai_document_extraction: default invoice_date to today on new moves
volkantasci Aug 6, 2026
a46cf6f
[IMP] ai_document_extraction: UX and extraction quality improvements
volkantasci Aug 6, 2026
099fd98
[IMP] ai_document_extraction: structured extraction with per-line taxes
volkantasci Aug 6, 2026
cb6ab72
[FIX] ai_document_extraction: make line-tax test independent of demo …
volkantasci Aug 6, 2026
2474c8d
[IMP] ai_document_extraction: replace misleading upload error for images
volkantasci Aug 6, 2026
eaa1771
[IMP] ai_document_extraction: extract invoices with a vision LLM inst…
volkantasci Aug 6, 2026
7e7bfdb
[IMP] ai_document_extraction: use 32k vision model and retry empty re…
volkantasci Aug 6, 2026
2a13ff6
[FIX] ai_document_extraction: raise LLM timeout and cap image size
volkantasci Aug 6, 2026
e66ff08
[IMP] ai_document_extraction: support OpenRouter vision models
volkantasci Aug 6, 2026
dd0248c
[IMP] ai_document_extraction: add payment_reference field to extracti…
volkantasci Aug 6, 2026
06dd8da
[IMP] ai_document_extraction: keep hash-like receipt numbers and vali…
volkantasci Aug 6, 2026
0f6e736
[IMP] ai_document_extraction: prompt for invoice/receipt number and p…
volkantasci Aug 6, 2026
e97981f
[IMP] ai_document_extraction: store payment reference and fall back t…
volkantasci Aug 6, 2026
67ae8a3
[IMP] ai_document_extraction: add Turkish translations
volkantasci Aug 6, 2026
99de272
[IMP] ai_document_extraction: hide AI buttons on non-draft moves
volkantasci Aug 6, 2026
14df30e
[IMP] ai_document_extraction: notify web client when extraction state…
volkantasci Aug 6, 2026
1519c47
[IMP] ai_document_extraction: register bus notification frontend asset
volkantasci Aug 6, 2026
060979d
[IMP] ai_document_extraction: live update form on AI extraction compl…
volkantasci Aug 6, 2026
40f22e5
[IMP] eslint.config.cjs: parse Odoo static JS as ES modules
volkantasci Aug 6, 2026
8082440
[IMP] ai_document_extraction: track live resId for bus notification
volkantasci Aug 6, 2026
bdee58b
[IMP] ai_document_extraction: skip reload while editing form
volkantasci Aug 6, 2026
6fd3cc1
[FIX] ai_document_extraction: use super.setup instead of legacy this.…
volkantasci Aug 6, 2026
0372035
[FIX] ai_document_extraction: accept duplicate ' (N)' attachment names
volkantasci Aug 6, 2026
cc0a03f
[FIX] ai_document_extraction: handle ' (N)' suffix in AI image prepar…
volkantasci Aug 6, 2026
a64e75a
[FIX] ai_document_extraction: reload form when extraction finishes un…
volkantasci Aug 6, 2026
2b03bf6
[DOC] ai_document_extraction: document vision LLM pipeline
volkantasci Aug 11, 2026
458ef57
[IMP] ai_document_extraction: add ai_connection openai_compatible kin…
volkantasci Aug 13, 2026
cdb0230
[IMP] ai_document_extraction: move HTTP vision call to ai_connection …
volkantasci Aug 13, 2026
65c27aa
[IMP] ai_document_extraction: link extraction to an ai_connection record
volkantasci Aug 13, 2026
71d3f4a
[IMP] ai_document_extraction: run extraction job through ai_connection
volkantasci Aug 13, 2026
b296f2e
[IMP] ai_document_extraction: fix temperature determinism and retry c…
volkantasci Aug 13, 2026
c19c6d4
[I18N] ai_document_extraction: sync translations for ai_connection re…
volkantasci Aug 13, 2026
0c759e6
[I18N] ai_document_extraction: regenerate readme and description
volkantasci Aug 13, 2026
78f4a4f
[FIX] ai_document_extraction: run connection layer with sudo and clea…
volkantasci Aug 13, 2026
1c02fb3
[FIX] ai_document_extraction: return False for unset ai_connection_id…
volkantasci Aug 13, 2026
5bf8d9f
[IMP] ai_document_extraction: move settings block up and gate it to d…
volkantasci Aug 13, 2026
79b3b55
[IMP] ai_document_extraction: move settings to a Technical-menu form …
volkantasci Aug 13, 2026
512d23f
[FIX] ai_document_extraction: move settings transient to wizards/ (py…
volkantasci Aug 13, 2026
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