in my custom model i create a status field
I use a cancel button to change status to cancelled.
def cancel_status(self):
self.write({'last_status': self.status})
self.write({'status': 'cancel'})
return True
I used a last_status field to write which is last status
My problem is when cancel button is clicked last status updated but it shows like this
How to display Await Approval instead of 'await_approval'?