document_incoming_ocr
This page combines editorial guidance with evidence extracted from the selected official branch. Always test the flow with your own permissions and configuration.
Purpose
The Document Incoming OCR Module provides the basis to interact with OCR services.
The analysis found 4 Python files, 5 XML files, 4 views, 3 actions, 1 menus, and 0 reports.
Functional user guide
Who should use it
This module is relevant to people responsible for document incoming ocr processes, company configuration, and result review. Administrators should participate whenever dependencies, permissions, or sequences are introduced.
What you will be able to do
After configuration, you will be able to identify the records added by document_incoming_ocr, execute actions in the correct state, and understand the information shared with other modules.
Requirements and preparation
Before activation, verify company, currency, users, and groups. Install and configure required dependencies first. When real data exists, rehearse activation and upgrades on a restored copy.
Activate dependencies first, review company configuration, and rehearse the complete workflow before production use.
Required dependencies
company— must be installed and configured before testing this module.document_incoming— must be installed and configured before testing this module.ir— must be installed and configured before testing this module.
Optional integrations
account_invoice— enables an additional integration; test the combination explicitly.account_product— enables an additional integration; test the combination explicitly.document_incoming_invoice— enables an additional integration; test the combination explicitly.product— enables an additional integration; test the combination explicitly.purchase— enables an additional integration; test the combination explicitly.
Recommended initial configuration
- Activate the module and sign in again to load menus and permissions.
- Review new company configuration options and defaults.
- Assign groups to test users using least privilege.
- Create small, verifiable master data before bulk imports.
- Run one complete scenario from draft to final state and inspect related records.
Module objects and concepts
- account.invoice: groups 1 model(s), including
account.invoice. These records form the information users inspect or modify during the process. - document.incoming: groups 2 model(s), including
document.incoming,document.incoming.ocr.service. These records form the information users inspect or modify during the process.
Typical workflow
- Select the correct company and date before creating a document.
- Complete master data before lines or details.
- Use form buttons for state changes; saving is not the same as validating or posting.
- Review warnings, totals, related documents, and traceability.
- Verify effects on dependent modules before closing the process.
Actions, states, and wizards
ocr_send_feedback— action or transition that starts ocr send feedback. Check permissions, current state, and related records before running it.done— action or transition that starts done. Check permissions, current state, and related records before running it.validated— action or transition that starts validated. Check permissions, current state, and related records before running it.
Controls before production
- Define who creates, reviews, confirms, cancels, and reads.
- Test closed periods, unauthorized users, and incomplete data.
- Verify numbering, currency, rounding, and time zone where applicable.
- Document error correction without direct database edits.
- Include its tables and files in backup and restore procedures.
Troubleshooting
- If a menu is missing, verify activation, module-list update, groups, and a new login session.
- If a field rejects a value, inspect its domain, company, state, and configured dependencies.
- If a button is hidden or disabled, check permissions and valid transitions; never change state with SQL.
- If results differ, reproduce a minimal case and compare related records before and after.
- Keep the full traceback, version, active modules, and minimal data needed to diagnose an error.
Developer guide
Architecture and extension points
The package contains 5 Python classes and declares or extends 3 models. It uses Char, Many2One, Selection. Developers should first determine whether a class creates a model or uses PoolMeta to extend one, preserve super() calls, and avoid duplicating dependency rules.
Registered or extended models
account.invoicedocument.incomingdocument.incoming.ocr.service
Field types used
CharMany2OneSelection
Detected classes and public methods
Classes: Incoming, IncomingOCRService, IncomingSupplierInvoice, IncomingSupplierInvoicePurchase, Invoice
Methods: copy(), get_document_incoming(), get_document_types(), get_service(), get_supplier_invoice(), match(), match_mime_type(), ocr_send_feedback(), on_modification(), proceed(), process(), send_feedback(), supplier_invoice_company(), supplier_invoice_party(), validate_invoice()
Code map
Detected 4 Python files, 5 XML files, and 0 explicit access files. XML connects models to views, menus, actions, and reports; access CSV files establish initial permissions.
__init__.pyaccount.pydoc/conf.pydocument.pydocument.xmlview/document_incoming_form.xmlview/document_incoming_ocr_service_form.xmlview/document_incoming_ocr_service_list.xmlview/document_incoming_ocr_service_list_sequence.xml
Test plan
- Activation on an empty database and upgrade from the previous revision.
- Create, update, copy, and delete according to state and access rights.
- Every button, transition, and wizard with valid and invalid scenarios.
- Applicable multi-company rules, translations, time zones, and currencies.
- Combined installation with required and optional dependencies.
- Backup and restore of records, attachments, and generated reports.
Compatibility and upgrades
Keep server and modules on series 8.0. Before upgrading, compare tryton.cfg, __register__ migrations, state changes, XML IDs, and permissions. A successful build does not replace a rehearsed migration or functional data reconciliation.
Official documentation evidence
Topics found: Design · Incoming Document OCR Service · Document Incoming OCR Module · Usage · Send feedback
-
- doc/design.rst: The Document Incoming OCR Module introduces the following concepts:
-
- doc/index.rst: The Document Incoming OCR Module provides the basis to interact with OCR services.
-
- doc/usage.rst: When the generated record has been verified, you can send feedback to the OCR service using the
Send Feedbackbutton.
- doc/usage.rst: When the generated record has been verified, you can send feedback to the OCR service using the