I try to pass a parameter in sql request but there is an error and i don't why. i post my code :
@api.onchange('x_exercice_id')
def changerExe(self):
val_exercice = int(self.x_exercice_id)
self.env.cr.execute("UPDATE ref_exercice SET actif = 'True' where id = %s" % (val_exercice,))
Thanks !