def METHOD_NAME(self):
    for rec in self:
        if rec.exception_ids and not rec.ignore_exception:
            rec.exceptions_summary = "<ul>%s</ul>" % "".join(
                [
                    "<li>%s: <i>%s</i> <b>%s<b></li>"
                    % tuple(
                        map(
                            html.escape,
                            (
                                e.name,
                                e.description or "",
                                _("(Blocking exception)") if e.is_blocking else "",
                            ),
                        )
                    )
                    for e in rec.exception_ids
                ]
            )
        else:
            rec.exceptions_summary = False