Hi,
To make a required field based on the state is easy we should make something like that :
note = fields.Text(string='Motif d\'ouverture', states={'Done': [('required', True)]} )
but what i'm looking for is when we want to change the state from New to Done it should give us an error message to attribute a value for this field ( note ).
note is not required in New State.
note field is just required in Done state
Any idea,
Regards,