Thai Localization - Base Location

l10n_th_base_location
REPOSITORY
REPOSITORYOCA/l10n-thailand
GIT
GIThttps://github.com/OCA/l10n-thailand.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-thailand/tree/16.0/l10n_th_base_location
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYLocalisation/Asia
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Saran440
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-thailand
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:49
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location_geonames_import
    - base_location
odoo/odoo:
    - base_address_extended
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
city_zip_geonames_import_form Import from Geonames form view city.zip.geonames.import xpath Inherits base_location_geonames_import.city_zip_geonames_import_form
city_zip_tree res.city.zip xpath Inherits base_location.city_zip_tree
Models touched (5)

New fields (2)
  • is_thailand Boolean
    compute='_compute_is_thailand' help="For Thailand only, data is from TH_th.txt and TH_en.txt stored in the module's data folder. To get data from Geonames.org, please uninstall l10n_th_base_location."
  • location_thailand_language Selection
    default='th' string='Language of Thailand' args: [('th', 'Thai'), ('en', 'English')]
Public methods (2)
  • get_and_parse_csv(self, country)
    @api.model
  • prepare_zip(self, row, city_id)
    @api.model
    Add district_code and sub_district_code into vals

New fields (2)
  • district_code Char
    help='This field is Amphoe (District) code in Thailand'
  • sub_district_code Char
    help='This field is Tambon (Sub-District) code in Thailand' string='Sub-District Code'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • name_get(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-thailand
GIT
GIThttps://github.com/OCA/l10n-thailand.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-thailand/tree/15.0/l10n_th_base_location
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYLocalisation/Asia
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Saran440
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-thailand
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:35
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location_geonames_import
    - base_location
odoo/odoo:
    - base_address_city
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
city_zip_geonames_import_form Import from Geonames form view city.zip.geonames.import xpath Inherits base_location_geonames_import.city_zip_geonames_import_form
city_zip_tree res.city.zip xpath Inherits base_location.city_zip_tree
Models touched (5)

New fields (2)
  • is_thailand Boolean
    compute='_compute_is_thailand' help="For Thailand only, data is from TH_th.txt and TH_en.txt stored in the module's data folder. To get data from Geonames.org, please uninstall l10n_th_base_location."
  • location_thailand_language Selection
    default='th' string='Language of Thailand' args: [('th', 'Thai'), ('en', 'English')]
Public methods (3)
  • get_and_parse_csv(self, country)
    @api.model
  • prepare_zip(self, row, city_id)
    @api.model
  • select_zip(self, row, country, state_id)
    @api.model

New fields (2)
  • district_code Char
    help='This field is Amphoe (District) code in Thailand'
  • sub_district_code Char
    help='This field is Tambon (Sub-District) code in Thailand' string='Sub-District Code'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • name_get(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-thailand
GIT
GIThttps://github.com/OCA/l10n-thailand.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-thailand/tree/14.0/l10n_th_base_location
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalisation/Asia
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSoca-travis, Weblate, OCA-git-bot, Saran440
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-thailand
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location_geonames_import
    - base_location
odoo/odoo:
    - base_address_city
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
city_zip_geonames_import_form Import from Geonames form view city.zip.geonames.import xpath Inherits base_location_geonames_import.city_zip_geonames_import_form
city_zip_tree res.city.zip xpath Inherits base_location.city_zip_tree
Models touched (5)

New fields (2)
  • is_thailand Boolean
    compute='_compute_is_thailand' help="For Thailand only, data is from TH_th.txt and TH_en.txt stored in the module's data folder. To get data from Geonames.org, please uninstall l10n_th_base_location."
  • location_thailand_language Selection
    default='th' string='Language of Thailand' args: [('th', 'Thai'), ('en', 'English')]
Public methods (3)
  • get_and_parse_csv(self, country)
    @api.model
  • prepare_zip(self, row, city_id)
    @api.model
  • select_zip(self, row, country, state_id)
    @api.model

New fields (2)
  • district_code Char
    help='This field is Amphoe (District) code in Thailand' string='District Code'
  • sub_district_code Char
    help='This field is Tambon (Sub-District) code in Thailand' string='Sub-District Code'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • name_get(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-thailand
GIT
GIThttps://github.com/OCA/l10n-thailand.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-thailand/tree/13.0/l10n_th_base_location
VERSION
VERSION 1.2.5
CATEGORY
CATEGORYLocalisation/Asia
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, OCA-git-bot, Kitti U, Saran440, ps-tubtim
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-thailand
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:14
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location_geonames_import
    - base_location
odoo/odoo:
    - base_address_city
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
city_zip_geonames_import_form Import from Geonames form view city.zip.geonames.import xpath Inherits base_location_geonames_import.city_zip_geonames_import_form
city_zip_tree res.city.zip xpath Inherits base_location.city_zip_tree
Models touched (5)

New fields (2)
  • is_thailand Boolean
    compute='_compute_is_thailand' help="For Thailand only, data is from TH_th.txt and TH_en.txt stored in the module's data folder. To get data from Geonames.org, please uninstall l10n_th_base_location." readonly=True
  • location_thailand_language Selection
    default='th' string='Language of Thailand' args: [('th', 'Thai'), ('en', 'English')]
Public methods (3)
  • get_and_parse_csv(self, country)
    @api.model
  • prepare_zip(self, row, city_id)
    @api.model
  • select_zip(self, row, country, state_id)
    @api.model

New fields (2)
  • district_code Char
    help='This field is Amphoe (District) code in Thailand' string='District Code'
  • sub_district_code Char
    help='This field is Tambon (Sub-District) code in Thailand' string='Sub-District Code'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • name_get(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.