diff --git a/erpnext/stock/doctype/item/item.py b/erpnext/stock/doctype/item/item.py index 6a9fd24900..584541ff08 100644 --- a/erpnext/stock/doctype/item/item.py +++ b/erpnext/stock/doctype/item/item.py @@ -142,7 +142,8 @@ class Item(WebsiteGenerator): def make_route(self): if not self.route: - return cstr(frappe.db.get_value('Item Group', self.item_group, 'route')) + '/' + self.scrub(self.name) + return cstr(frappe.db.get_value('Item Group', self.item_group, + 'route')) + '/' + self.scrub(self.item_code + '-' + self.name) def get_parents(self, context): item_group, route = frappe.db.get_value('Item Group', self.item_group, ['name', 'route'])