diff --git a/MANIFEST.in b/MANIFEST.in index 53477f2ed0..3e467e5362 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -16,4 +16,5 @@ recursive-include erpnext *.md recursive-include erpnext *.png recursive-include erpnext *.py recursive-include erpnext *.svg +recursive-include erpnext/public * recursive-exclude * *.pyc diff --git a/erpnext/setup/doctype/item_group/item_group.js b/erpnext/setup/doctype/item_group/item_group.js index 43a7117083..2aaf558642 100644 --- a/erpnext/setup/doctype/item_group/item_group.js +++ b/erpnext/setup/doctype/item_group/item_group.js @@ -11,7 +11,7 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) { if(!doc.__islocal && doc.show_in_website) { cur_frm.appframe.add_button("View In Website", function() { - window.open(doc.page_name); + window.open(doc.__onload.website_route); }, "icon-globe"); } } diff --git a/erpnext/stock/doctype/item/item.js b/erpnext/stock/doctype/item/item.js index 319d67dc90..2b499c168e 100644 --- a/erpnext/stock/doctype/item/item.js +++ b/erpnext/stock/doctype/item/item.js @@ -18,7 +18,7 @@ cur_frm.cscript.refresh = function(doc) { if(!doc.__islocal && doc.show_in_website) { cur_frm.appframe.add_button("View In Website", function() { - window.open(doc.page_name); + window.open(doc.__onload.website_route); }, "icon-globe"); } cur_frm.cscript.edit_prices_button();