def show_item_groups_in_website():
 products = frappe.get_doc(u'Item Group', u'Products')
 products.show_in_website = 1
 products.route = u'products'
 products.save()

def show_item_groups_in_website ( ) : products = frappe . get_doc ( u'Item Group' , u'Products' ) products . show_in_website = 1 products . route = u'products' products . save ( )
set show_in_website=1 for item groups .