'Update affiliations'

@staticmethod
def org_branch_ondelete(row):

    db = current.db
    table = db.org_organisation_branch
    record = db((table.id == row.id)).select(table.branch_id, table.deleted, table.deleted_fk, limitby=(0, 1)).first()
    if record:
        org_update_affiliations('org_organisation_branch', record)
