Daily updates from Odoo
Thursday, April 18, 2024
1 change · 17.0
New functionality added to Odoo
This update adds tax calculation and electronic document interchange (EDI) capabilities for service transactions in Brazil, complementing the existing goods transaction support. Service invoices now go through an additional validation step and are tracked in a pending state until confirmed, with status checks performed automatically and on-demand. This enhancement enables Brazilian companies using Odoo to properly handle tax compliance and document submission for both goods and service-based invoices.
Original PR description
This adds tax calculation and EDI support for service transactions. All new functionality was added in new modules because this is taking place in a stable release. Avatax has different endpoints for…
This adds tax calculation and EDI support for service transactions. All new functionality was added in new modules because this is taking place in a stable release. Avatax has different endpoints for submitting and cancelling service invoices. These two endpoints have fairly similar payloads so various overrides were made to remove/add information from the goods payloads to make them compatible with the service endpoints. A new account.external.tax.mixin l10n_br_is_service_transaction field is used to determine whether to follow the old, existing goods flow or go through the new service flow. The biggest difference is that service invoices go through an extra, asynchronous validation step. To achieve this, invoices that are successfully submitted end up in a new "pending" state. After this, their status can be checked with button_l10n_br_edi_get_service_invoice(). This function is also called periodically with a cron. In master, these modules will be merged into the already existing modules and deleted. task-3660574