diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py index d3907af0e3d..27d99736bbc 100644 --- a/addons/account/models/account_bank_statement.py +++ b/addons/account/models/account_bank_statement.py @@ -237,7 +237,8 @@ class AccountBankStatement(models.Model): balance_start = fields.Monetary(string='Starting Balance', states={'confirm': [('readonly', True)]}, compute='_compute_starting_balance', readonly=False, store=True) balance_end_real = fields.Monetary('Ending Balance', states={'confirm': [('readonly', True)]}, compute='_compute_ending_balance', readonly=False, store=True) accounting_date = fields.Date(string="Accounting Date", help="If set, the accounting entries created during the bank statement reconciliation process will be created at this date.\n" - "This is useful if the accounting period in which the entries should normally be booked is already closed.") + "This is useful if the accounting period in which the entries should normally be booked is already closed.", + states={'open': [('readonly', False)]}, readonly=True) state = fields.Selection([('open', 'New'), ('confirm', 'Validated')], string='Status', required=True, readonly=True, copy=False, default='open') currency_id = fields.Many2one('res.currency', compute='_compute_currency', string="Currency") journal_id = fields.Many2one('account.journal', string='Journal', required=True, states={'confirm': [('readonly', True)]}, default=_default_journal, check_company=True)