Hello,
I have declared a field w ith a default value as follows :
status = fields.Char(string="Status_Vente", required=False, editable=False, default='Disponible')
I would like to change the "status" value when i click in button. This button is defined in another class.
I have tried to change the "status" value by this instruction, but it dosen't work for me :
def button_action(self):
...........
self.status= 'Vendu'