From e4f686b5312c12aeaaf7c563f8dac6c609abdc36 Mon Sep 17 00:00:00 2001 From: "Nihantra C. Patel" <141945075+Nihantra-Patel@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:00:43 +0530 Subject: [PATCH] fix: guest user will be able to view "Shop by Category" (#206) (cherry picked from commit 1e38a3fd6deb6a2f19b9669ffe52efd20e898f19) --- webshop/setup/install.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/webshop/setup/install.py b/webshop/setup/install.py index 9a553b8b27..7fb7bb3988 100644 --- a/webshop/setup/install.py +++ b/webshop/setup/install.py @@ -191,6 +191,18 @@ def add_custom_fields(): ] } + frappe.make_property_setter( + { + "doctype": "Item Group", + "doctype_or_field": "DocType", + "fieldname": "allow_guest_to_view", + "property": "allow_guest_to_view", + "value": 1, + "property_type": "Check" + }, + is_system_generated=True, + ) + return create_custom_fields(custom_fields) def navbar_add_products_link():