'Read the first line of the memo to determine the note name'

@api.depends('memo')
def _compute_name(self):

    for note in self:
        text = (html2plaintext(note.memo) if note.memo else '')
        note.name = text.strip().replace('*', '').split('\n')[0]
