Hello,
I'm trying to display a warning message in some case, in the write function but it doesn't work
Here is my code below :
def write(self,values):
record = super(StockPicking, self).write(values)
if record:
if self.s_note:
return {
'value': record,
'warning': {
'title': 'WARNING',
'message': self.s_note}
}
return record
Is it possible to do that ? If yes, where is my error?