odoo/enterprise#82367

Created by fw-bot
Merged at 1067559ecc4a0b0e79793a6b883ad12b69d30066

Statuses:

label
odoo-dev:saas-18.1-18.0-t-43467-pam-392493-fw
head
8c0c45ae2afd3c51ff2ae2870599b81306cc08b6
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