'Location has been updated => update totals of all budgets with
staff at this location'

@staticmethod
def budget_location_onaccept(form):

    try:
        record_id = form.vars.id
    except:
        return
    linktable = current.s3db.budget_budget_staff
    budget_entity_id = linktable.budget_entity_id
    query = (linktable.location_id == record_id)
    rows = current.db(query).select(budget_entity_id, groupby=budget_entity_id)
    for row in rows:
        budget_budget_totals(row.budget_entity_id)
    return
