Hello,
There is any examples or function that would delete all the values based on id list? I tryed to use the unlink i get the ID list that i want to delete but when i apply this function to my button nothing happens.
unlink function
def unlink(self, cr, uid, ids, context=None):
period_obj2 = self.pool.get('pp.feature')
for fy in period_obj2.browse(cr, uid, ids, context=context):
featurename = fy.id
other_table2 = period_obj2.search(cr, uid, [('plan','=',featurename)])
Button function
def create_period5(self, cr, uid, ids, context=None):
return self.unlink(cr, uid, ids, context)
Any examples and any help would be appreciated
Thank you.