parameters: (self)
return_statement: return res
docstring: unlink ir.action.todo which are related to actions which will be deleted.
             NOTE: ondelete cascade will not work on ir.actions.actions so we will need to do it manually.
docstring_summary: unlink ir.action.todo which are related to actions which will be deleted.
             NOTE: ondelete cascade will not work on ir.actions.actions so we will need to do it manually.
docstring_tokens: unlink ir . action . todo which are related to actions which will be deleted . NOTE : ondelete cascade will not work on ir . actions . actions so we will need to do it manually .
function: def unlink(self):
          """unlink ir.action.todo which are related to actions which will be deleted.
             NOTE: ondelete cascade will not work on ir.actions.actions so we will need to do it manually."""
          todos = self.env['ir.actions.todo'].search([('action_id', 'in', self.ids)])
          todos.unlink()
          res = super(IrActions, self).unlink()
          # self.get_bindings() depends on action records
          self.clear_caches()
          return res
function_tokens: def unlink ( self ) : todos = self . env [ 'ir.actions.todo' ] . search ( [ ( 'action_id' , 'in' , self . ids ) ] ) todos . unlink ( ) res = super ( IrActions , self ) . unlink ( ) # self.get_bindings() depends on action records self . clear_caches ( ) return res