'Forms complete name of location from parent location to child location.'

@api.one
@api.depends('name', 'location_id.name')
def _compute_complete_name(self):

    name = self.name
    current = self
    while current.location_id:
        current = current.location_id
        name = ('%s/%s' % (current.name, name))
    self.complete_name = name
