From cc84b2a5b3ebf089d5749b71cd923aad890c93ab Mon Sep 17 00:00:00 2001 From: Saran440 Date: Tue, 23 Nov 2021 15:46:40 +0700 Subject: [PATCH] [ADD] tracking on hr.expense --- l10n_th_account_tax_expense/models/hr_expense.py | 2 ++ l10n_th_account_tax_expense/views/hr_expense_view.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/l10n_th_account_tax_expense/models/hr_expense.py b/l10n_th_account_tax_expense/models/hr_expense.py index 72bb65c14..491542d2a 100644 --- a/l10n_th_account_tax_expense/models/hr_expense.py +++ b/l10n_th_account_tax_expense/models/hr_expense.py @@ -10,6 +10,7 @@ class HrExpense(models.Model): bill_partner_id = fields.Many2one( comodel_name="res.partner", string="Vendor", + tracking=True, ) wht_tax_id = fields.Many2one( comodel_name="account.withholding.tax", @@ -17,6 +18,7 @@ class HrExpense(models.Model): compute="_compute_wht_tax_id", store=True, readonly=False, + tracking=True, ) @api.onchange("tax_ids", "wht_tax_id") diff --git a/l10n_th_account_tax_expense/views/hr_expense_view.xml b/l10n_th_account_tax_expense/views/hr_expense_view.xml index c30629c68..7c4e38676 100644 --- a/l10n_th_account_tax_expense/views/hr_expense_view.xml +++ b/l10n_th_account_tax_expense/views/hr_expense_view.xml @@ -26,7 +26,7 @@