diff --git a/l10n_th_account_tax/models/account_withholding_move.py b/l10n_th_account_tax/models/account_withholding_move.py
index 981d93367..f3153a1e3 100644
--- a/l10n_th_account_tax/models/account_withholding_move.py
+++ b/l10n_th_account_tax/models/account_withholding_move.py
@@ -65,6 +65,10 @@ class AccountWithholdingMove(models.Model):
WHT_CERT_INCOME_TYPE,
string="Type of Income",
)
+ wht_cert_income_desc = fields.Char(
+ string="Income Description",
+ size=500,
+ )
currency_id = fields.Many2one(
comodel_name="res.currency",
default=lambda self: self.env.user.company_id.currency_id,
@@ -82,3 +86,11 @@ def _compute_move_data(self):
rec.date = rec.move_id and rec.move_id.date or False
rec.calendar_year = rec.date and rec.date.strftime("%Y")
rec.payment_id = rec.move_id.payment_id
+
+ @api.onchange("wht_cert_income_type")
+ def _onchange_wht_cert_income_type(self):
+ if self.wht_cert_income_type:
+ select_dict = dict(WHT_CERT_INCOME_TYPE)
+ self.wht_cert_income_desc = select_dict[self.wht_cert_income_type]
+ else:
+ self.wht_cert_income_desc = False
diff --git a/l10n_th_account_tax/views/account_move_view.xml b/l10n_th_account_tax/views/account_move_view.xml
index 726553169..5e7a1d4eb 100644
--- a/l10n_th_account_tax/views/account_move_view.xml
+++ b/l10n_th_account_tax/views/account_move_view.xml
@@ -157,6 +157,7 @@
+
diff --git a/l10n_th_account_tax/views/account_payment_view.xml b/l10n_th_account_tax/views/account_payment_view.xml
index 75c2767e8..481557826 100644
--- a/l10n_th_account_tax/views/account_payment_view.xml
+++ b/l10n_th_account_tax/views/account_payment_view.xml
@@ -146,6 +146,7 @@
+
diff --git a/l10n_th_account_tax/views/account_withholding_move.xml b/l10n_th_account_tax/views/account_withholding_move.xml
index 0b89fe6ca..02f2255e3 100644
--- a/l10n_th_account_tax/views/account_withholding_move.xml
+++ b/l10n_th_account_tax/views/account_withholding_move.xml
@@ -10,6 +10,7 @@
+
diff --git a/l10n_th_account_tax/views/withholding_tax_cert.xml b/l10n_th_account_tax/views/withholding_tax_cert.xml
index 22af42424..17c905e38 100644
--- a/l10n_th_account_tax/views/withholding_tax_cert.xml
+++ b/l10n_th_account_tax/views/withholding_tax_cert.xml
@@ -63,7 +63,7 @@
-
+