odoo/enterprise#82513

Created by fw-bot
Merged at 9dd3a78f9e967c8895a1a72dde3de805a5259788

Statuses:

label
odoo-dev:master-18.0-t-43467-pam-426148-fw
head
70035e611d085853a833514e9ef8c6a2432c2fd4
merged
7 months ago by Accounting, Laurent Smet (las)
odoo/odoo odoo/enterprise
18.0 #189224 #71234
saas-18.1 #82367
saas-18.2 #82376
saas-18.3
saas-18.4
19.0
master #82513

[FW][IMP] l10n_uy_edi: Read vendor XMLs through API

This pull request (PR) facilitates the integration of Odoo with the Uruguayan electronic billing system, allowing automatic synchronization of vendor bills every 10 minutes. Synchronized bills are created in "Draft" status for user review, complete with attached PDF and XML files.
Also this pull request allows to create vendor bills from XML files on uruguayan journals.

Key Features:

  • Automatic Bill Creation: Bills are generated in "Draft" status to enable manual verification against vendor invoices and attachments.

  • Necessary Configuration:
    1) The database must connect to Uruware.
    2) A Uruguayan company must be set up with an appropriate chart of accounts.
    3) Notifications must be activated in the Uruguayan billing system.

Important Considerations:
- Errors during synchronization will still create invoices in "Draft" with error messages for user review.
- Invoice lines are created without products; if a vendor doesn’t exist, it will be automatically created based on RUT.
- Any unregistered taxes will be flagged.

Technical Overview:
- Notification Mechanism: Notifications for each received CFE are managed through a web service, allowing users to check, request details, and discard notifications.
- Synchronization Process: Notifications are read and processed sequentially, with each CFE generating a corresponding document in Odoo. Notifications must be discarded to continue processing.

Related Tasks:
Adhoc task-43467
LATAM task-1249

Forward-Port-Of: #71234