'Checks that either a Code OR a Name are entered'

@staticmethod
def supply_item_category_onvalidate(form):

    if (not (form.vars.code or form.vars.name)):
        errors = form.errors
        errors.code = errors.name = current.T('An    Item    Category    must    have    a    Code    OR    a    Name.')
