def METHOD_NAME(self):
    """
    Override this method to define more filter criteria of line for which we create contract
    :return: line to create contract
    """
    self.ensure_one()
    line_to_create_contract = self.order_line.filtered(
        lambda r: not r.contract_id and r.is_contract
    )
    return line_to_create_contract