This project aims to integrate the Odoo ERP with the TOConline system, ensuring compliance with Portuguese tax regulations.
The integration allows the export and synchronization of tax data from Odoo to TOConline, such as invoices, credit notes, and payments, ensuring efficient communication with the Tax Authority (AT) through the TOConline API.
Integrates Odoo with TOConline for certified invoicing in Portugal: create, cancel, and manage customer invoices and credit notes; register payments; download invoices from TOConline into Odoo; and send official TOConline invoices by email.
- Technical analysis of the integration requirements between Odoo and TOConline.
- Development of modules and features in Odoo to enable data export and synchronization.
- Implementation of TOConline API communication.
- Validation of fiscal compliance with the AT.
- Testing and documentation to ensure reliability and maintainability.
- Create invoices in TOConline from Odoo.
- Payment synchronization from Odoo to TOConline.
- Prevent client duplication by using unique references.
- Support for multiple currencies (USD, EUR, GBP, ...).
- Create Credit Notes in TOConline from Odoo.
- Payment synchronization of Credit Notes from Odoo to TOConline.
- Handle document cancellations.
- Enforce date and sequence restrictions (e.g., no retroactive invoices or refunds).
This module allows communication between Odoo and the TOConline platform, which is Portuguese, therefore containing only Portuguese VAT values.
Depending on your company's location and operations, not all VAT rates may be valid for use. For example, a company based in mainland Portugal should not use Azores or Madeira VAT rates.
Please ensure that your company's VAT settings in Odoo reflect the correct region to avoid compliance issues when communicating with TOConline.
- Copy or clone the module into your Odoo custom addons folder:
git clone https://github.com/erpgap/toc_online_odoo.git
- Update the apps list in Odoo and install the TOConline Integration module.
After installation, go to:
Fill in the following information:
- TOConline Client ID
- TOConline Client Secret
- TOConline Company ID
Save the configuration and authenticate to enable the connection.
To use this integration, you must obtain your company's credentials directly from the TOConline platform.
Steps to obtain your credentials:
-
Access your TOConline account:
https://app.toconline.pt -
In the left menu, go to Configurações Empresa.
-
Open the Dados da API section.
-
Copy the following information:
- Client ID
- Client Secret (Generated automatically — keep it secure)
- Company ID
-
Enter this information in the TOConline Configuration section in Odoo.
Without these credentials, Odoo will not be able to connect with TOConline.