mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-15 12:55:10 +00:00
@@ -221,7 +221,7 @@ website_route_rules = [
|
|||||||
|
|
||||||
standard_navbar_items = [
|
standard_navbar_items = [
|
||||||
{
|
{
|
||||||
"item_label": "Erase Demo Data",
|
"item_label": "Delete Demo Data",
|
||||||
"item_type": "Action",
|
"item_type": "Action",
|
||||||
"action": "erpnext.demo.clear_demo();",
|
"action": "erpnext.demo.clear_demo();",
|
||||||
"is_standard": 1,
|
"is_standard": 1,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ frappe.provide("erpnext.demo");
|
|||||||
|
|
||||||
$(document).on("desktop_screen", function (event, data) {
|
$(document).on("desktop_screen", function (event, data) {
|
||||||
data.desktop.add_menu_item({
|
data.desktop.add_menu_item({
|
||||||
label: __("Clear Demo Data"),
|
label: __("Delete Demo Data"),
|
||||||
icon: "trash",
|
icon: "trash",
|
||||||
condition: function () {
|
condition: function () {
|
||||||
return frappe.boot.sysdefaults.demo_company;
|
return frappe.boot.sysdefaults.demo_company;
|
||||||
|
|||||||
Reference in New Issue
Block a user