Skip to content
Health
73/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
6.36 MB
Module directory on disk
Code analysis 0 migration notes 2 models 0 views 0 HTTP endpoints

Description

This module is a utility package for Thailand, providing helper functions commonly used in Thai-specific contexts.

It includes features such as:

  • Conversion between Arabic and Thai numerals

  • Thai month name and Buddhist calendar (Thai year) conversion

  • Thai font support:

    • Font THBaijam
    • Font THChakraPetch
    • Font THCharmofAU
    • Font THCharmonman
    • Font THFahKwang
    • Font THK2DJuly8
    • Font THKodchasal
    • Font THKoHo
    • Font THKrub
    • Font THMaliGrade6
    • Font THNiramitAS
    • Font THSarabun
    • Font THSarabunNew
    • Font THSrisakdi

Dependencies

Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 0

No views found for this module.

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (1)
  • font Selection
    selection_add=[('THBaijam', 'THBaijam'), ('THBaijam-Bold', 'THBaijam Bold'), ('THBaijam-Italic', 'THBaijam Italic'), ('THBaijam-Bold-Italic', 'THBaijam Bold Italic'), ('THChakraPetch', 'THChakraPetch'), ('THChakraPetch-Bold', 'THChakraPetch Bold'), ('THChakraPetch-Italic', 'THChakraPetch Italic'), ('THChakraPetch-Bold-Italic', 'THChakraPetch Bold Italic'), ('THCharmofAU', 'THCharmofAU'), ('THCharmonman', 'THCharmonman'), ('THCharmonman-Bold', 'THCharmonman Bold'), ('THFahKwang', 'THFahKwang'), ('THFahKwang-Bold', 'THFahKwang Bold'), ('THFahKwang-Italic', 'THFahKwang Italic'), ('THFahKwang-Bold-Italic', 'THFahKwang Bold Italic'), ('THK2DJuly8', 'THK2DJuly8'), ('THK2DJuly8-Bold', 'THK2DJuly8 Bold'), ('THK2DJuly8-Italic', 'THK2DJuly8 Italic'), ('THK2DJuly8-Bold-Italic', 'THK2DJuly8 Bold Italic'), ('THKodchasal', 'THKodchasal'), ('THKodchasal-Bold', 'THKodchasal Bold'), ('THKodchasal-Italic', 'THKodchasal Italic'), ('THKodchasal-Bold-Italic', 'THKodchasal Bold Italic'), ('THKoHo', 'THKoHo'), ('THKoHo-Bold', 'THKoHo Bold'), ('THKoHo-Italic', 'THKoHo Italic'), ('THKoHo-Bold-Italic', 'THKoHo Bold Italic'), ('THKrub', 'THKrub'), ('THKrub-Bold', 'THKrub Bold'), ('THKrub-Italic', 'THKrub Italic'), ('THKrub-Bold-Italic', 'THKrub Bold Italic'), ('THMaliGrade6', 'THMaliGrade6'), ('THMaliGrade6-Bold', 'THMaliGrade6 Bold'), ('THMaliGrade6-Italic', 'THMaliGrade6 Italic'), ('THMaliGrade6-Bold-Italic', 'THMaliGrade6 Bold Italic'), ('THNiramitAS', 'THNiramitAS'), ('THNiramitAS-Bold', 'THNiramitAS Bold'), ('THNiramitAS-Italic', 'THNiramitAS Italic'), ('THNiramitAS-Bold-Italic', 'THNiramitAS Bold Italic'), ('THSarabun', 'THSarabun'), ('THSarabun-Bold', 'THSarabun Bold'), ('THSarabun-Italic', 'THSarabun Italic'), ('THSarabun-Bold-Italic', 'THSarabun Bold Italic'), ('THSarabunNew', 'THSarabunNew'), ('THSarabunNew-Bold', 'THSarabunNew Bold'), ('THSarabunNew-Italic', 'THSarabunNew Italic'), ('THSarabunNew-Bold-Italic', 'THSarabunNew Bold Italic'), ('THSrisakdi', 'THSrisakdi'), ('THSrisakdi-Bold', 'THSrisakdi Bold')]
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (4)
  • format_thai_date(self, date_obj, month_format='full', buddhist_year=True, format_date='{day} {month} {year}', include_time=False, time_format='%H:%M')
    @api.model
    Format a date or datetime object to Thai date string. Args: date_obj: date object month_format: "full" → มกราคม "short" → ม.ค. "numeric" → 01, 02, 03 buddhist_year (bool): True = พ.ศ., False = ค.ศ. format_date (str): format custom include_time: append time part if datetime
  • thai_month_name(self, month, short=False)
    @api.model
    Convert month number (1-12) to Thai month name.
  • to_arabic_number(self, value)
    @api.model
    Convert Thai numerals to Arabic numerals (0-9).
  • to_thai_number(self, value)
    @api.model
    Convert Arabic numerals to Thai numerals (0-9).

Loading…

Loading…