Maintainers
Current maintainer:
This module is part of the ecosoft-odoo/ecosoft-addons project on GitHub.
You are welcome to contribute.
This module integrates Odoo with the Frappe e-Tax Service (INET) to sign and retrieve certified e-Tax documents.
Key features:
Workflow:
Table of contents
1. Frappe Connection
The connection is selected per company and shared by every Frappe e-Tax API operation. Contact your e-Tax Service provider for the URL and token.
2. Document Type Code (etax.doctype.code)
Standard INET document type codes are pre-loaded:
| Code | Description |
|---|---|
| 380 | ใบแจ้งหนี้ |
| 388 | ใบกำกับภาษี |
| T01 | ใบรับ (ใบเสร็จรับเงิน) |
| T02 | ใบแจ้งหนี้/ใบกำกับภาษี |
| T03 | ใบเสร็จรับเงิน/ใบกำกับภาษี |
| T04 | ใบส่งของ/ใบกำกับภาษี |
| T05 | ใบกำกับภาษีอย่างย่อ |
| 80 | ใบเพิ่มหนี้ |
| 81 | ใบลดหนี้ |
Go to Invoicing -> Configurations -> e-Tax Service -> Document Type Code to view or add codes.
3. e-Tax Document Type (etax.doctype)
Map each Odoo document type to its INET document type code and report template.
Go to Invoicing -> Configurations -> e-Tax Service -> e-Tax Doctype and create records:
Example setup:
| Form Name | Type | Code |
|---|---|---|
| ใบกำกับภาษี | Customer Invoice | 388 |
| ใบแจ้งหนี้/ใบกำกับภาษี | Customer Invoice | T02 |
| ใบเพิ่มหนี้ | Customer Debit Note | 80 |
| ใบลดหนี้ | Customer Credit Note | 81 |
4. Purpose Code (etax.purpose.code)
Purpose codes are pre-loaded following INET convention and are linked to applicable document type codes.
Go to Invoicing -> Configurations -> e-Tax Service -> Purpose Code to view all codes.
Key groups:
Purpose codes are automatically filtered by document type when creating a credit note or debit note.
5. Replacement Lock Date
Go to Invoicing -> Configurations -> Settings, section Ecosoft e-Tax Services:
6. e-Tax Recipient Emails
Open the customer or invoice contact and fill in e-Tax Email next to Email. Multiple recipients can be entered as a comma-separated list, for example billing@example.com,accounting@example.com.
Invoices, receipts, and replacement receipts use this field for buyer_email in the Frappe e-Tax API payload.
Under Send Email in the company’s e-Tax settings, enable Require Email Before Signing e-Tax to block signing when the document’s customer has no e-Tax Email. This option is disabled by default.
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Current maintainer:
This module is part of the ecosoft-odoo/ecosoft-addons project on GitHub.
You are welcome to contribute.