Initial commit: L10N_Asia Pacific packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:52 +02:00
commit 54c86b612c
828 changed files with 58224 additions and 0 deletions

View file

@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class ResPartner(models.Model):
_inherit = "res.partner"
l10n_th_branch_name = fields.Char(compute="_l10n_th_get_branch_name")
def _l10n_th_get_branch_name(self):
for partner in self:
if not partner.is_company or partner.country_code != 'TH':
partner.l10n_th_branch_name = ""
else:
code = partner.company_registry
partner.l10n_th_branch_name = f"Branch {code}" if code else "Headquarter"