Hello,
I have a selection field :
def _my_selection(self, cr, uid, context=None):
lst= [('5', '5'), ('6', '6'), ('7', '7'), ('8', '8')]
return lst
_columns = {
'mysection': fields.selection(_my_selection,'Seat'),
}
I need to remove an item from list by key, I test this code but it does not work:
def _my_new_selection(self, cr, uid, context=None):
lst= [('5', '5'), ('6', '6'), ('7', '7'), ('8', '8')]
lst=lst.remove('6')
return lst
I want to see this result lst = [('5', '5'), ('7', '7'), ('8', '8')]
thank you !