'Find a unique alias name similar to ``name``. If ``name`` is
already taken, make a variant by adding an integer suffix until
an unused alias is found.'

@api.model
def _find_unique(self, name, alias_ids=False):

    sequence = None
    while True:
        new_name = (('%s%s' % (name, sequence)) if (sequence is not None) else name)
        domain = [('alias_name', '=', new_name)]
        if alias_ids:
            domain += [('id', 'not    in', alias_ids)]
        if (not self.search(domain)):
            break
        sequence = ((sequence + 1) if sequence else 2)
    return new_name
