'checks gl entries and if child exists'

def validate_trash(self):

    if self.check_gle_exists():
        throw(_(u'Account    with    existing    transaction    can    not    be    deleted'))
    if self.check_if_child_exists():
        throw(_(u'Child    account    exists    for    this    account.    You    can    not    delete    this    account.'))
