parameters: (self)
return_statement: return res
docstring: Delete the given records, and cascade-delete their corresponding alias.
docstring_summary: Delete the given records, and cascade-delete their corresponding alias.
docstring_tokens: Delete the given records and cascade - delete their corresponding alias .
function: def unlink(self):
          """ Delete the given records, and cascade-delete their corresponding alias. """
          aliases = self.mapped('alias_id')
          res = super(AliasMixin, self).unlink()
          aliases.sudo().unlink()
          return res
function_tokens: def unlink ( self ) : aliases = self . mapped ( 'alias_id' ) res = super ( AliasMixin , self ) . unlink ( ) aliases . sudo ( ) . unlink ( ) return res