E-Invoice Tax Type Documentation¶
Overview¶
The E-Invoice Tax Type model (account.einvoice.taxtype) provides a lookup table for LHDN MyInvois tax type codes. It stores the standardized tax type codes used for e-invoice tax categorization.
Model Information¶
Model Name: account.einvoice.taxtype
Display Name: e-Invoice Tax Type
Name Field: description
Key Fields: None (no unique constraint defined)
Features¶
- ❌ Audit logging enabled (
_audit_log) - ❌ Multi-company support (
company_id) - ❌ Full-text content search (
_content_search) - ✅ Translatable description
Key Fields Reference¶
All Fields¶
| Field | Type | Required | Description |
|---|---|---|---|
code |
Char | ✅ | Tax type code (searchable, indexed) |
description |
Text | ❌ | Tax type description (translatable) |
Standard LHDN Tax Type Codes¶
| Code | Description |
|---|---|
01 |
Sales Tax |
02 |
Service Tax |
03 |
Tourism Tax |
04 |
High-Value Goods Tax |
05 |
Sales Tax on Low Value Goods |
06 |
Not Applicable |
E |
Tax Exempt |
Related Models¶
| Model | Relationship | Description |
|---|---|---|
account.einvoice.total.tax.amount |
via einvoice_tax_type_id | Tax totals |
account.einvoice.totaltax.taxtype |
via einvoice_tax_type_id | Tax type totals |
Common Use Cases¶
Use Case 1: Get Tax Type¶
# Find tax type by code
tax_types = get_model("account.einvoice.taxtype").search_browse([
["code", "=", "01"]
])
if tax_types:
print(f"Tax Type: {tax_types[0].description}")
Version History¶
Last Updated: December 2024 Model Version: account_einvoice_taxtype.py Framework: Netforce
This documentation is generated for developer onboarding and reference purposes.