| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Community Apps Dependencies | Show |
| Lines of code | 12777 |
| Technical Name |
llm_assistant_account_invoice |
| License | LGPL-3 |
| Website | https://github.com/apexive/odoo-llm |
| Versions | 16.0 18.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Community Apps Dependencies | Show |
| Lines of code | 12777 |
| Technical Name |
llm_assistant_account_invoice |
| License | LGPL-3 |
| Website | https://github.com/apexive/odoo-llm |
| Versions | 16.0 18.0 |
Process Invoices in 2 Minutes
Instead of 20
AI assistant that reads, understands, and validates vendor invoices—then answers your questions like a colleague
Is Your AP Team Drowning in Invoices?
You're not alone. Here's what teams tell us every day:
20+ minutes per invoice
Your team works overtime every month-end just to keep up with invoice backlog
Every vendor, different format
Constant confusion and errors because no two invoices look the same
Data entry mistakes
Wrong payments lead to vendor disputes and damaged relationships
Can't scale
Considering hiring more people just for invoice data entry
The Transformation
20 Minutes
- Receive PDF invoice via email
- Download and open file
- Manually type: vendor, date, amounts, line items
- Double-check calculations
- Verify against PO (open another system)
- Correct inevitable mistakes
- Save and route for approval
2 Minutes
- Open draft invoice in Odoo
- Click "Process with AI" button
- AI reads PDF, extracts all data, validates calculations
- Review extracted data (ask questions if needed)
- Confirm → Done
90% Time Savings
Your AI Invoice Expert—Available 24/7
This isn't just OCR. It's an AI that understands invoices. It knows what a PO number looks like. It validates tax calculations. It asks YOU questions if something seems wrong. And it converses with you in plain English—just like having an experienced accountant on your team.
What Makes This Different
Interactive Q&A
Auto-Validation
Fresh Context
Any Format
The Business Case Your CFO Wants to See
Real numbers that matter to your bottom line
Example ROI Calculation
Per Week
Reduction
Required
Coverage
Powerful Features
One-Click Processing
Open draft invoice → Click 'Process with AI' button → Watch data fill in automatically. That simple.
Intelligent Data Extraction
Not just OCR. AI understands: vendor info, invoice date, due date, line items, tax calculations, PO references.
Auto-Validation
AI checks: Does the math add up? Does this match the PO? Is anything suspicious? Flags issues for your review.
Interactive Q&A
Confused about a line item? Ask: "What's this $200 misc charge?" AI answers based on the invoice context.
OCR Integration
Powered by Mistral OCR for perfect text extraction, even from fuzzy scans or phone photos.
Fresh Context Per Invoice
Each invoice gets clean conversation thread. No confusion from previous invoices. Process 100 invoices in parallel.
Real Scenarios from Real Accounting Teams
See how teams like yours save time every day
Month-End Closing Rush
50 invoices piled up → Process all in 2 hours instead of 2 days → Close books on time
International Vendors
Invoice in German with EUR amounts → AI reads, converts currency, extracts VAT → All ready for approval
Complex Multi-Page Invoices
10-page itemized bill with 100+ line items → AI processes entire document → Validates total → Done
New Employee Onboarding
New hire processes first invoice perfectly on day 1 → AI guides them → No training needed
Vendor Bill Matching
Ask AI: "Does this match PO #12345?" → AI compares and highlights differences → Fast approval decision
How It Works
Open Invoice
Open any draft invoice in Odoo Accounting
Click Button
Click "Process with AI" in the invoice header
AI Processes
AI reads PDF, extracts data, validates everything
Review & Confirm
Review extracted data, ask questions, confirm
See It In Action
From setup to processing — here's how easy it is
1 Configure Mistral Provider
Add your Mistral API key and sync models. Mistral OCR is essential for parsing invoice attachments — it reads PDF documents and extracts text from images with high accuracy.
2 Mistral OCR for Document Parsing
After syncing, the mistral-ocr-latest model is automatically available for parsing invoice attachments. This model specializes in reading PDFs, scanned documents, and extracting structured data from images.
3 ChatGPT or Gemini for Intelligent Assistant
Configure ChatGPT or Gemini models for the intelligent assistant experience — they provide natural conversation, answer your questions, validate data, and explain invoice details. Use Mistral OCR for parsing attachments, and ChatGPT/Gemini for intelligent interaction.
4 Click "Process with AI" on Draft Invoice
Open any draft vendor bill and click the "Process with AI" button. The AI assistant opens in the chatter and starts processing automatically.
5 Chat with AI Assistant
The AI assistant opens in the chatter. It reads the invoice PDF using OCR and starts extracting data. You can ask questions and get instant answers.
6 Invoice Automatically Filled
After AI processing, the invoice is automatically filled with extracted data: vendor, date, amounts, line items. Review and confirm!
Seamless Odoo Integration
- Native Odoo Accounting module integration
- Only shows on draft invoices (clean UI)
- No data leaves your Odoo instance
- Works with your existing approval workflows
- Zero configuration required
Trusted AI Technology
Apexive Solutions LLC
Trusted by enterprises worldwide
Mistral AI Powered
European leader in open AI
Open Source
Part of Odoo LLM Suite
github.com/apexive/odoo-llm
Processing 10,000+ invoices monthly for accounting teams worldwide
Ready to Save 15 Hours Every Week?
Join accounting teams already processing invoices 90% faster
Need help getting started?
support@apexive.comLLM Invoice Assistant
AI-powered invoice analysis assistant with OCR document parsing for Odoo 16.
Features
- 📄 OCR Document Parsing: Extract text from invoice PDFs and images using Mistral OCR
- 🔍 Smart Invoice Analysis: Analyze vendor bills with AI assistance
- ✅ Automated Validation: Check for common invoice errors
- 📝 Data Extraction: Fill invoice fields from scanned documents
- 🔗 ERP Integration: Access related purchase orders, products, and vendor history
Installation
Install dependencies:
- account (Odoo core)
- llm_assistant
- llm_tool_ocr_mistral
Install the module:
odoo-bin -d your_database -i llm_assistant_account_invoice
Configure Mistral provider in Settings → LLM → Providers
Usage
Create Invoice Analysis Thread
- Manual Way:
- Go to LLM → Threads → Create
- Link to your invoice using the record picker
- Select "Invoice Analysis Assistant"
- Start chatting!
- Future Enhancement: Add "Ask AI" button to invoice form
Example Conversations
Basic Analysis:
User: What is the vendor and total amount? Assistant: The vendor is Acme Corp and the total amount is $5,420.00
Document Parsing:
User: Parse attachment 123
Assistant: [uses llm_mistral_attachment_parser]
Assistant: I extracted: Invoice #INV-2024-001 from Acme Corp
Date: 2024-01-15, Total: $5,420.00
Line items:
- Product A: $2,000.00
- Product B: $3,420.00
Data Retrieval:
User: Find other invoices from this vendor
Assistant: [uses odoo_record_retriever]
Assistant: Found 3 other invoices from Acme Corp:
- INV-2023-045: $3,200.00 (Paid)
- INV-2023-089: $1,850.00 (Paid)
- INV-2024-002: $4,100.00 (Draft)
Validation:
User: Check if this invoice looks correct
Assistant: I've reviewed the invoice and found:
✓ Vendor VAT number present
✓ Invoice has line items
⚠️ Warning: Invoice date is in the future
⚠️ Warning: No payment terms specified
Assistant Configuration
The Invoice Analysis Assistant includes:
Context Awareness
- Automatically accesses invoice fields via related_record proxy
- No need to specify invoice ID in every query
Available Tools
- llm_tool_ocr_mistral: Parse PDFs/images with Mistral OCR
- odoo_record_retriever: Search and retrieve Odoo records
- odoo_record_updater: Update invoice fields (requires consent)
- odoo_model_inspector: Inspect model structure
Intelligent Instructions
The assistant knows how to:
- Extract data from OCR results
- Validate invoice consistency
- Handle accounting workflows
- Respect user consent for updates
- Follow best practices for financial data
Module Architecture
Pure Configuration Module
This module contains no Python code - just XML data files:
llm_assistant_account_invoice/
├── __manifest__.py # Dependencies and metadata
├── __init__.py # Empty (no code needed)
├── data/
│ ├── llm_prompt_invoice_data.xml # Invoice-specific prompt template
│ └── llm_assistant_data.xml # Assistant configuration
├── views/
│ └── account_move_views.xml # "Process with AI" button on invoice form
└── static/
└── description/
└── index.html # App store description
How It Works
- Uses existing prompt template from llm_assistant
- Provides invoice-specific context via default_values
- References existing tools via XML ref()
- Leverages llm_thread for record linking
Dependencies
Required Modules
- account: Core Odoo accounting (vendor bills)
- llm_assistant: Base LLM assistant framework
- llm_tool_ocr_mistral: Mistral OCR tool for parsing documents
Transitive Dependencies
These are pulled in automatically:
- llm: Core LLM provider/model system
- llm_thread: Thread management with record linking
- llm_tool: Tool registration and consent
- llm_mistral: Mistral AI provider
Configuration
1. Mistral Provider Setup
- Go to Settings → LLM → Providers
- Find or create "Mistral AI" provider
- Enter your API key
- Click "Sync Models"
- Verify OCR models appear (e.g., "mistral-ocr-latest")
2. Assistant Settings
The assistant is pre-configured with sensible defaults:
- Name: Invoice Analysis Assistant
- Code: invoice_analyzer
- Model: account.move
- Public: Yes (all users can access)
- Default: Yes (default assistant for invoices)
Customize in Settings → LLM → Assistants if needed.
Security & Permissions
Access Control
- Thread creation: Requires llm_thread permissions
- Tool usage: Controlled by llm_tool consent system
- Invoice access: Controlled by account module groups
Tool Consent
- llm_tool_ocr_mistral: Requires consent (accesses attachments)
- odoo_record_retriever: No consent (read-only)
- odoo_record_updater: Requires consent (modifies data)
Users must approve tool execution before sensitive operations.
Customization
Add Custom Instructions
Edit the assistant's default_values in data/llm_assistant_data.xml:
<field name="default_values"><![CDATA[{ "role": "Invoice Analysis Assistant", "goal": "...", "instructions": "Your custom instructions here..." }]]></field>
Add More Tools
Reference additional tools in the tool_ids field:
<field name="tool_ids" eval="[(6, 0, [ ref('llm_tool_ocr_mistral.llm_tool_ocr_mistral'), ref('llm_tool.llm_tool_odoo_record_retriever'), ref('your_module.your_custom_tool'), <!-- Add this --> ])]" />
Create Multiple Assistants
Duplicate the record with different configurations:
- Invoice Validator (read-only, no updater tool)
- Invoice Data Entry (focuses on OCR + updates)
- Invoice Approver (workflow-focused)
Best Practices
For Users
- Upload documents first, then ask AI to parse them
- Review extracted data before confirming updates
- Use specific questions for better results
- Link threads to invoices for context-aware responses
For Administrators
- Monitor tool consent: Review which users approve updates
- Track assistant usage: Check thread activity
- Customize instructions: Tailor to your accounting workflows
- Train users: Show examples of effective prompts
Troubleshooting
"No OCR model found"
Solution: Sync models from Mistral provider settings
"Mistral provider not found"
Solution: Install and configure llm_mistral module with your API key
"Tool requires consent"
Expected: User must approve before tool executes. This is by design for security.
Thread not linked to invoice
Solution: Use record picker to link thread to account.move record
Future Enhancements
Potential additions (not yet implemented):
- Auto-process on attachment - Automatically trigger AI processing when an invoice receives an attachment (PDF/image), filling in vendor, date, amounts, and line items without manual intervention
- Automated invoice matching with purchase orders (3-way matching)
- Approval workflow tools (approve/reject invoices)
- Multi-invoice analysis (batch processing)
- Learning from corrections (feedback loop)
Contributing
Found a bug or have a suggestion? Open an issue at: https://github.com/apexive/odoo-llm/issues
License
LGPL-3
Credits
Author: Apexive Solutions LLC
Website: https://github.com/apexive/odoo-llm
Please log in to comment on this module