How can I change the value of a fields.selection in a function?
def fuse_tickets(self, cr, uid, ids, context=None): active_tickets = context.get('active_tickets') active_tickets = ast.literal_eval(active_tickets) ticket = context.get('ticket') for active in active_tickets: if active != ticket: status = self.pool.get('tickets').browse(cr, uid, active, context=context) ? --> status.update('value': {'fused', 'fused'}) <-- ?
This is the function that I have created but I can't change the status (that is the fields.selection) to another option that it has defined in the .py