OdooWiki OCA HUB

AI OCA Bridge Extra Parameters

ai_oca_bridge_extra_parameters folder_open OCA/ai open_in_new
AI License: AGPL-3

This module is used for adding extra parameters to the AI OCA Bridge's payloads

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets you add custom extra parameters to the data sent to the AI system by the AI OCA Bridge, using either simple expressions or small formulas.

This module extends the AI OCA Bridge so that each AI bridge configuration can include additional pieces of information in the request sent to the AI system.

On the AI bridge form, a new "Extra Parameters" field lets you attach one or more extra parameters. These are managed from a new menu entry "AI Bridge Extra Parameters" under the AI Bridge menu, where you can create, list and edit them.

Each extra parameter has a name, a type of evaluation (Expression or Formula) and a context (Record or Bridge Self).

  • With Expression, you write text that may contain values in curly braces; each value is calculated from the record or from the bridge itself and inserted into the text.
  • With Formula, you write a small script that must assign a value to a variable called result; this value is sent as the parameter.

The module checks what you write when you save: it rejects unsafe operations (such as writing, deleting, importing or executing code), unknown variables, unbalanced braces, and formulas that do not set result. It also provides validation buttons on the parameter form.

When a bridge builds its request, the extra parameters are evaluated and added under extra_parameters. For sample payloads, a record is picked automatically if needed.

Depends on

Menus it adds

AI Bridge Extra Parameters
Models and fields (2)
  • ai.bridge · extends an existing modelextra_parameter_ids (Extra Parameters)
  • ai.extra.parameter · new modelname, formula, expression, evaluate_type, parameter_type

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: 3 confirmed, 6 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 18.0

This module allows adding extra parameters to be sent in the bridge's payloads, using Python expressions. These parameters, unlike fields, can be used independently from the model.

Extra Parameters

Create extra parameters by navigating to: AI Bridge → AI Bridge Extra Parameters. Extra parameters define what additional information will be available in the payload.

Fields Description

Parameter Type:

  • Record: Evaluated in the context of the record being processed.
  • Bridge Self: Evaluated in the context of the AI Bridge itself (useful for using self.env[...]).

Name: Name for this extra parameter.

Value: The actual information the agent will use.

  • Use curly braces {} for dynamic values. Example: {object.name} for object.name, {object.env["product.product"].search([]).mapped("name")} for passing all product names.
  • Without braces: the agent receives literal text.

When configuring AI OCA Bridge's record payload, add some of your previously created extra parameters.

No verified information in OCA: Installation.

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.