Accounting Scenario AI Generator
by Terrabit https://www.terrabit.ro , Dorin Hongu https://www.terrabit.ro| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Inventory (stock) • Invoicing (account) • Purchase (purchase) |
| Community Apps Dependencies | Show |
| Lines of code | 2557 |
| Technical Name |
deltatech_account_scenario_ai |
| License | LGPL-3 |
| Website | https://www.terrabit.ro |
Accounting Scenario AI Generator
Generate accounting scenarios JSON using Odoo AI
Overview
deltatech_account_scenario_ai extends the
deltatech_account_scenario module with AI-powered scenario
generation.
It allows users to describe a business process in plain text and have Odoo’s AI automatically generate a valid JSON scenario definition, ready to be executed and validated by the scenario framework.
How It Works
- Open an
Account Scenariorecord (or create a new one). - Fill in the Description field with a plain-text description of the business process you want to model (e.g. “Purchase of goods from a supplier, receipt into stock, vendor bill, and payment”).
- Optionally fill in the AI Prompt field with additional instructions (specific accounts, amounts, partners, validation rules, etc.).
- Click the Generate with AI button.
- The module sends the following to the configured Odoo AI agent
(
ai_agent_scenario_generator):- The system prompt — a short instruction that directs the AI to use the attached documentation.
- The knowledge source —
USAGE.MDfromdeltatech_account_scenario, loaded as anir.attachmentand linked viasource_idsto the agent. This file contains the full framework documentation: JSON format, all 25 step types, field descriptions, checks, and a complete example. - The user prompt — containing the process description and additional instructions.
- The AI returns a valid JSON scenario which is automatically saved in
the
json_datafield. - Review the generated JSON, then click Set Ready and Execute Scenario as usual.
AI Agent
The module installs a dedicated AI agent: ``ai_agent_scenario_generator``.
- System prompt: instructs the AI to generate JSON scenarios strictly following the framework documentation.
- Knowledge source:
USAGE.MDattached as a binary source (ai.agent.source) — contains all step types, required/optional fields,checks,expected_account_moves, and a full example scenario.
Fields Added
| Field | Description |
|---|---|
ai_prompt |
Additional instructions for the AI (accounts, amounts, partners, validation rules). |
Button Added
| Button | Visible when | Description |
|---|---|---|
| Generate with AI | State is Draft or
Failed |
Sends description + AI prompt
to the
ai_agent_scenario_generator
agent and populates
json_data. |
Requirements
- The
aienterprise module must be installed and an AI provider (OpenAI, Google Gemini, etc.) must be configured in Settings → AI. - The
ai_agent_scenario_generatoragent is created automatically on module installation viadata/ai_agent_data.xml.
Bug Tracker
Bugs are tracked on Terrabit Issues. In case of trouble, please check there if your issue has already been reported.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Terrabit
- Dorin Hongu
Maintainers
Current maintainer:

This module is part of the terrabit-ro/bitshop_ent project on GitHub.
You are welcome to contribute.
Need help?
We are an Odoo partner building apps for the Romanian market (SAGA & WinMentor export; Romanian accounting localization in progress). Direct support from the team that built the module.
Contact TerrabitNeed help getting started?
We are an Odoo partner building apps for the Romanian market (SAGA & WinMentor export; Romanian accounting localization in progress). Direct support from the team that built the module.
Contact Terrabit →
Please log in to comment on this module