From b71f6818bbacd23608c0ee9579a8a55e02fafeb6 Mon Sep 17 00:00:00 2001 From: Andhitia Rama Date: Sun, 31 Mar 2024 00:13:54 +0700 Subject: [PATCH] [UPD] ssi_hr_expense_account_cash_advance * Adjust to detail input mechanism's change --- .../models/hr_cash_advance_settlement_line.py | 2 +- .../views/hr_cash_advance_settlement.xml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ssi_hr_expense_account_cash_advance/models/hr_cash_advance_settlement_line.py b/ssi_hr_expense_account_cash_advance/models/hr_cash_advance_settlement_line.py index 151e5d8..10e8e1f 100644 --- a/ssi_hr_expense_account_cash_advance/models/hr_cash_advance_settlement_line.py +++ b/ssi_hr_expense_account_cash_advance/models/hr_cash_advance_settlement_line.py @@ -11,7 +11,7 @@ class HrCashAdvanceSettlementLineInherit(models.Model): require_expense_account = fields.Boolean( string="Require Expense Account", - readonly=False, + readonly=True, ) expense_account_id = fields.Many2one( comodel_name="employee_expense_account", diff --git a/ssi_hr_expense_account_cash_advance/views/hr_cash_advance_settlement.xml b/ssi_hr_expense_account_cash_advance/views/hr_cash_advance_settlement.xml index bce306f..3efcddf 100644 --- a/ssi_hr_expense_account_cash_advance/views/hr_cash_advance_settlement.xml +++ b/ssi_hr_expense_account_cash_advance/views/hr_cash_advance_settlement.xml @@ -19,6 +19,21 @@ + + + + + + + +