Daily updates from Odoo
Wednesday, October 1, 2025
2 changes · 18.0
New functionality added to Odoo
Adds automated and manual synchronization with Romania's ANAF e-Factura service so businesses can update invoice statuses and receive validated vendor bills directly in Odoo. This reduces manual follow-up, helps avoid duplicate bills, and lets companies choose the accounting journal used for automatically created ANAF bills.
Original PR description
Backport of the odoo/odoo#208082, adding the possibility to synchronize invoice and bill status at once. The endpoint `ListaMesajeFactura` returns a list of messages to process. Those messages can: -…
Backport of the odoo/odoo#208082, adding the possibility to synchronize invoice and bill status at once. The endpoint `ListaMesajeFactura` returns a list of messages to process. Those messages can: - Return an invoice status update with a success or an error; - Return a new bill from another vendor already validated by the authority. The messages contain a message ID to recover and download the official data from the ANAF server: the invoice/bill XML and the signature. (documentation)[https://mfinante.gov.ro/static/10/eFactura/prezentare%20api%20efactura.pdf] When synchronizing, we retrieve the new messages from the last 24 hours and update the database content accordingly: - in case of invoice status update, update the relevant invoice/bill status and download the signature in case of success (note that this was already done before, we only call the relevant methods to do so); - in case of a new vendor bill, we download the bill XML and signature, create a new in_invoice move and fill it up with the XML content. In case a bill with the same index is already in the database, we do nothing to avoid duplicate. If a similar bill (same date and amount) is found but not yet validated, we only validate it. The synchronization can be triggered manually through the option in the list view and it is automatically triggered every 4 hours with a CRON. Lastly, the created bill journal can be set up in the Accounting settings so that users can specify their favorite journals for automated ANAF bills. task-4891081 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#221324
Adds a new option for Polish electronic invoicing users to generate and download FA(3) XML files for KSeF directly from invoices. This helps businesses prepare for upcoming KSeF 2.0 compliance by tracking submission details and storing generated XML files for testing and future integration.
Original PR description
- Added new fields to account.move to track KSeF status, reference number, attachment, and error logs. - Implemented `_l10n_pl_edi_render_fa3_xml()` to generate FA(3)-compliant XML structure using lxml. - Created `action_send_to_ksef()` method to generate, store, and log the XML file as an ir.attachment. - Integrated download functionality via HTTP controller `/l10n_pl_edi/download_xml/<invoice_id>` to allow direct XML download. - Added frontend button in the invoice form view to trigger generation and download in one step. - Prepared logic for future KSeF API integration and status handling. This lays the foundation for full KSeF 2.0 compliance and testing ahead of the official rollout. task-4728713 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr