def METHOD_NAME(self):
    for rec in self:
        subkpi_name = rec.kpi_expression_id.subkpi_id.name
        if subkpi_name:
            subkpi_name = "." + subkpi_name
        else:
            subkpi_name = ""
        rec.name = "{}{}: {} - {}".format(
            rec.kpi_expression_id.kpi_id.name,
            subkpi_name,
            rec.date_from,
            rec.date_to,
        )