From a276b07362db464908d736cf9304fda7e6cd1395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 13 Mar 2025 12:57:47 +0100 Subject: [PATCH] Make statement line number readonly when statement is not draft --- modules/account_statement/statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_statement/statement.py b/modules/account_statement/statement.py index e21060425c..85caa68207 100644 --- a/modules/account_statement/statement.py +++ b/modules/account_statement/statement.py @@ -648,7 +648,7 @@ def origin_mixin(_states): company_currency = fields.Function( fields.Many2One('currency.currency', "Company Currency"), 'on_change_with_company_currency') - number = fields.Char("Number") + number = fields.Char("Number", states=_states) date = fields.Date( "Date", required=True, states=_states) amount = Monetary(