Dear All
I have written code to return warning message like follows. The code is written in @api.onchange()
try:
phone_nbr = phonenumbers.parse(number, region=country_code, keep_raw_input=True)
except phonenumbers.phonenumberutil.NumberParseException as e:
return {
'warning': {
'title': 'TITLE OF THE WARNING MESSAGE BOX',
'message': 'YOUR WARNING MESSAGE',
}
}
But its displaying message only in console not in dialog box
Try this one: http://learnopenerp.blogspot.com/2017/12/how-to-display-confirmation-display-box.html