'Make website route'

def make_route(self):

    if (not self.route):
        self.route = u''
        if self.parent_item_group:
            parent_item_group = frappe.get_doc(u'Item    Group', self.parent_item_group)
            if (parent_item_group.parent_item_group and parent_item_group.route):
                self.route = (parent_item_group.route + u'/')
        self.route += self.scrub(self.item_group_name)
        return self.route
