Is there a way to change selection field value using Python and I didn't find any documentation to use . The state field is a field that describe a treatment state
I wish to do something like :
state=fields.Selection([
('stopped', 'Stopped'),
('wait', 'Wait'),
('finished', 'finished'),
], 'State', readonly=True)
def changeselectionvalue(self,state)
self.state=state #something to do this
Help me please I am a new user of a Tryton