Skip to content

Commit

Permalink
Merge pull request #40041 from rohitwaghchaure/fixed-not-able-to-view…
Browse files Browse the repository at this point in the history
…-pages

fix: Webpages not working without login
  • Loading branch information
rohitwaghchaure authored Feb 22, 2024
2 parents b364fe7 + d6fad08 commit 9d723df
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion erpnext/setup/doctype/item_group/item_group.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"actions": [],
"allow_guest_to_view": 1,
"allow_import": 1,
"allow_rename": 1,
"autoname": "field:item_group_name",
Expand Down Expand Up @@ -227,13 +228,14 @@
"label": "Include Descendants"
}
],
"has_web_view": 1,
"icon": "fa fa-sitemap",
"idx": 1,
"image_field": "image",
"is_tree": 1,
"links": [],
"max_attachments": 3,
"modified": "2023-01-05 12:21:30.458628",
"modified": "2024-02-22 16:23:46.936496",
"modified_by": "Administrator",
"module": "Setup",
"name": "Item Group",
Expand Down
7 changes: 7 additions & 0 deletions erpnext/setup/doctype/item_group/templates/item_group.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "templates/web.html" %}

{% block page_content %}
<h1>{{ title }}</h1>
{% endblock %}

<!-- this is a sample default web page template -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div>
<a href="{{ doc.route }}">{{ doc.title or doc.name }}</a>
</div>
<!-- this is a sample default list template -->

0 comments on commit 9d723df

Please sign in to comment.