'Provide the options for the Milestone search filter
- all Milestones with Tasks'

@staticmethod
def project_task_milestone_opts():

    db = current.db
    mtable = db.project_milestone
    ttable = db.project_task
    ltable = db.project_task_milestone
    query = (((ttable.deleted == False) & (ltable.task_id == ttable.id)) & (ltable.milestone_id == mtable.id))
    rows = db(query).select(mtable.id, mtable.name)
    return dict(((row.id, row.name) for row in rows))
