Make statement line number readonly when statement is not draft

This commit is contained in:
Cédric Krier
2025-03-13 12:57:47 +01:00
parent 73dfe9fc39
commit a276b07362
+1 -1
View File
@@ -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(