| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Project (project) |
| Lines of code | 463 |
| Technical Name |
odoo_error_ai |
| License | OPL-1 |
| Versions | 14.0 18.0 |
Odoo Error AI Reporter
Automatic error capture, intelligent diagnosis, and task creation powered by AI
Key Features
- Automatic Error Capture for RPC, frontend (JS), and backend exceptions.
- Centralized Error Registry stored in Odoo with full traceback and context.
- AI-Powered Diagnosis using GPT to analyze errors and suggest solutions.
- Automatic Project & Task Creation in Odoo Project.
- Duplicate Error Detection to avoid creating repeated tasks.
- Estimated Fix Time Extraction with automatic task deadline calculation.
- Thread-safe Logging Handler compatible with production environments.
How It Works
This module installs a custom logging handler and a frontend error collector that intercepts Odoo errors in real time.
When an error occurs, the system:
- Captures the error message, traceback, user, and URL context.
- Checks if the same error already exists (deduplication logic).
- Creates or links a Project Task automatically.
- Sends the error to GPT with a strict response structure.
- Stores the AI diagnosis directly on the error and task.
The result is a fully automated error triage system that turns raw exceptions into actionable development tasks.
AI Diagnosis Structure
The GPT response is forced to follow a strict, automation-friendly structure:
- Task Name â short and clear task title.
- Problem Summary â human-readable explanation.
- Possible Causes â likely technical reasons.
- Step-by-Step Resolution â practical fix guidance.
- Odoo File / Model Reference â where to look in the code.
- Estimated Time â automatically converted into task deadlines.
Configuration
- Install the module.
- Go to Settings â Technical â Parameters â System Parameters.
- Set your OpenAI API Key.
- Errors will be captured automatically â no extra setup required.
Support
For support, custom features, or enterprise integrations:
Email: foerp.solutions@gmail.com
Odoo Error AI Reporter
An intelligent error monitoring and diagnosis system for Odoo that automatically captures frontend, RPC, and backend exceptions, creates project tasks, and generates AI-powered diagnostic suggestions using GPT.
This module transforms raw Odoo errors into structured, actionable development tasks with minimal human intervention.
Contents:
Introduction
The Odoo Error AI Reporter automatically intercepts errors occurring in Odoo applications (frontend JavaScript errors, RPC failures, and backend Python exceptions).
Instead of manually copying logs and creating tasks, the module:
- Captures errors in real time
- Stores full traceback and execution context
- Creates or links Odoo Project tasks
- Uses GPT to generate structured diagnostics
- Prevents duplicate task creation
This results in a fully automated error triage and debugging workflow.
Key Features
- Automatic error capture (Frontend, RPC, Backend)
- Centralized error registry inside Odoo
- Thread-safe logging handler for production environments
- AI-powered error diagnosis using GPT
- Strict response structure for automation compatibility
- Automatic project and task creation
- Duplicate error detection using traceback comparison
- Estimated fix time extraction with automatic deadline calculation
- Full integration with Odoo Project and Mail
Installation
Copy the module folder into your custom addons directory.
Restart the Odoo server.
Update the Apps list.
Install the module:
“Odoo Error AI Reporter”
Configuration
Go to:
Settings → Technical → Parameters → System Parameters
Create or update the parameter:
- Key: odoo_error_ai.openai_api_key
- Value: your OpenAI API key
(Optional) Configure access rights for the error.ai model.
Once configured, no further action is required.
Workflow Overview
When an error occurs, the following flow is executed automatically:
- The error is intercepted by: - A frontend JavaScript handler, or - A backend Python logging handler.
- The system captures: - Error message - Full traceback - URL / execution context - Reporting user (if available)
- The error is checked against existing records to prevent duplication.
- If new: - A record is created in error.ai. - A Project Task is created or linked. - The error is sent to GPT for analysis.
- The AI response is saved and attached to the task.
AI Diagnosis Structure
The GPT response is strictly enforced to follow this structure:
- Task Name
- Problem Summary
- Possible Causes
- Step-by-Step Resolution
- Alternative Solutions
- Odoo File / Model Reference
- Estimated Time
This allows the system to:
- Rename the task automatically
- Calculate task deadlines
- Provide consistent, readable diagnostics
AI Prompt Enforcement
The AI is instructed to:
- Follow a mandatory response template
- Write in a professional, human tone
- Focus on practical Odoo development solutions
- Reference files, models, and likely code locations
- Always include estimated resolution time
This guarantees predictable output suitable for automation.
Security
- No raw SQL is ever executed.
- All database operations use Odoo ORM.
- The logging handler runs with controlled SUPERUSER access only for persistence.
- Record rules and access rights still apply at the UI level.
- The system is thread-safe and safe for production environments.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module