Merge pull request #53322 from sokumon/add-clear-demo-data

This commit is contained in:
Soham Kulkarni
2026-03-17 17:05:51 +05:30
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -221,11 +221,12 @@ website_route_rules = [
standard_navbar_items = [
{
"item_label": "Clear Demo Data",
"item_label": "Delete Demo Data",
"item_type": "Action",
"action": "erpnext.demo.clear_demo();",
"is_standard": 1,
"condition": "eval: frappe.boot.sysdefaults.demo_company",
"condition": "eval: frappe.boot.sysdefaults.demo_company && frappe.boot.sysdefaults.demo_company.length > 0",
"icon": "trash",
},
]

View File

@@ -2,7 +2,7 @@ frappe.provide("erpnext.demo");
$(document).on("desktop_screen", function (event, data) {
data.desktop.add_menu_item({
label: __("Clear Demo Data"),
label: __("Delete Demo Data"),
icon: "trash",
condition: function () {
return frappe.boot.sysdefaults.demo_company;