options = [and_(Department.id.in_(login_user.department_ids), model.
    visibility == VISIBLE_DEPT), and_(model.visibility == VISIBLE_COMPANY, 
    model.company_id == login_user.company_id)]
if not sup_usr_only:
    pass
How to use conditional operator or_ in sqlalchemy with conditional if?