# -*- coding: utf-8 -*-
# Copyright 2026 Nexa Systems Inc.
# License OPL-1 (Odoo Proprietary License v1.0)

{
    'name': 'Fusion Digitize',
    'version': '19.0.1.0.0',
    'category': 'Accounting',
    'summary': 'Replace Odoo IAP digitization with local PDF extraction and OpenAI',
    'description': """
Fusion Digitize - Custom Document Digitization
================================================

Replaces Odoo's IAP-based document digitization with a 3-tier extraction
pipeline that eliminates Odoo credit costs:

* **Tier 1: pdfminer** - Free instant text extraction for digital PDFs
* **Tier 2: Tesseract OCR** - Free local OCR for scanned PDFs
* **Tier 3: OpenAI Vision** - Paid fallback for poor quality scans

Extracted text is sent to GPT-4o-mini for structured field mapping at
~$0.001 per document vs ~$0.10 per document with Odoo IAP credits.

Supports vendor bills, customer invoices, and bank statements.
    """,
    'author': 'Nexa Systems Inc.',
    'website': 'https://www.nexasystems.ca',
    'license': 'OPL-1',
    'depends': [
        'iap_extract',
        'account_invoice_extract',
        'account_bank_statement_extract',
    ],
    'external_dependencies': {
        'python': ['pdfminer'],
    },
    'data': [
        'data/ir_config_parameter.xml',
        'views/res_config_settings_views.xml',
    ],
    'installable': True,
    'auto_install': False,
    'application': True,
}
