These are the states, I just found in model. How can I change this in accordance with odoo17.
1)states={'draft': [('readonly', False)]}
2)states={'done': [('readonly', True)], 'post': [('readonly', True)]}
3) date = fields.Date(states={'done': [('readonly', True)]}, default=fields.Date.context_today, string="Trip Date")
4)states={'done': [('readonly', True)], 'approved': [('readonly', True)], 'reported': [('readonly', True)]}