'@return: the structures linked to the given contracts, ordered by hierachy (parent=False first,
then first level children and so on) and without duplicata'

@api.multi
def get_all_structures(self):

    structures = self.mapped('struct_id')
    if (not structures):
        return []
    return list(set(structures._get_parent_structure().ids))
