The Bug is fixed... I could do it in this way!!
def onchange_remaining_seats(self,cr,uid,ids,seats,attendee_ids):
res = {
'value':{
'remaining_seats_percent': self._get_remaining_seats_percent(seats,attendee_ids),
}
}
if seats < 0:
res['warning'] = {
'title': _('Warning'),
'message': _('You cannot have negative seats'),
}
The Bug is fixed... I could do it in this way!! remaining_ seats(self, cr,uid, ids,seats, attendee_ ids): seats_percent' : self._get_ remaining_ seats_percent( seats,attendee_ ids),
def onchange_
res = {
'value':{
'remaining_
}
}
if seats < 0:
res['warning'] = {
'title': _('Warning'),
'message': _('You cannot have negative seats'),
}
return res