Files
erpnext/erpnext/sidebar/module_def_setup/module_def_setup.json
shariquerik 9551f213ae feat(desk-v2): ship ERPNext's module-primary rail and its module sidebars
The module-primary half of frappe/frappe#42226's charter point 2, opposite CRM's
doctype-primary rail: the same table, the same resolver and the same item kinds,
with modules as the rail's primary items.

One `Rail` record of 20 items -- 18 `Sidebar` items over a module sidebar each,
and two `Module` items for the modules whose sidebar would hold one row or none.
The sidebars are authored, not derived: the module *page* keeps deriving from
module contents and the two lists differ on purpose, which is what desk v1's own
curation already says -- 107 doctypes sit on a module page and not in that
module's sidebar, and 101 sidebar links point outside their module.

The rows are converted from desk v1's module sidebars, which stay untouched and
keep serving v1. 486 v1 rows become 317: `Report`, `Dashboard`, `Workspace` and
`Page` items have no desk v2 destination and are not authored, headings left
over nothing are dropped, and two duplicate rows in Accounts go. `Portal` is on
v1's dock and is not authored at all -- it holds no doctypes, so it has neither
a sidebar to open nor a module page to land on.

ERPNext ships no navigation code: the rows arrive through `sync_for`'s
app-rooted walk at migrate.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-02 19:20:00 +05:30

393 lines
8.3 KiB
JSON

{
"app": "erpnext",
"creation": "2026-09-02 22:15:00.000000",
"docstatus": 0,
"doctype": "Sidebar",
"idx": 0,
"items": [],
"link_doctype": "Module Def",
"link_to": "Setup",
"modified": "2026-09-02 22:15:00.000000",
"modified_by": "Administrator",
"name": "module_def_setup",
"navigation_items": [
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "global-defaults",
"label": "Global Defaults",
"link_doctype": "DocType",
"link_to": "Global Defaults",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "system-settings",
"label": "System Settings",
"link_doctype": "DocType",
"link_to": "System Settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "accounts-settings",
"label": "Accounts Settings",
"link_doctype": "DocType",
"link_to": "Accounts Settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "pos-settings",
"label": "POS Settings",
"link_doctype": "DocType",
"link_to": "POS Settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "selling-settings",
"label": "Selling Settings",
"link_doctype": "DocType",
"link_to": "Selling Settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "buying-settings",
"label": "Buying Settings",
"link_doctype": "DocType",
"link_to": "Buying Settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "stock-settings",
"label": "Stock Settings",
"link_doctype": "DocType",
"link_to": "Stock Settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "manufacturing-settings",
"label": "Manufacturing Settings",
"link_doctype": "DocType",
"link_to": "Manufacturing Settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "projects-settings",
"label": "Projects Settings",
"link_doctype": "DocType",
"link_to": "Projects Settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "crm-settings",
"label": "CRM Settings",
"link_doctype": "DocType",
"link_to": "CRM Settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "support-settings",
"label": "Support Settings",
"link_doctype": "DocType",
"link_to": "Support Settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 1,
"hidden": 0,
"item_type": "Section",
"keep_closed": 1,
"key": "section-other-settings",
"label": "Other Settings",
"link_doctype": "",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "subscription-settings",
"label": "Subscription Settings",
"link_doctype": "DocType",
"link_to": "Subscription Settings",
"parent_key": "section-other-settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "item-variant-settings",
"label": "Item Variant Settings",
"link_doctype": "DocType",
"link_to": "Item Variant Settings",
"parent_key": "section-other-settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "delivery-settings",
"label": "Delivery Settings",
"link_doctype": "DocType",
"link_to": "Delivery Settings",
"parent_key": "section-other-settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "currency-exchange-settings",
"label": "Currency Exchange Settings",
"link_doctype": "DocType",
"link_to": "Currency Exchange Settings",
"parent_key": "section-other-settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "appointment-booking-settings",
"label": "Appointment Booking Settings",
"link_doctype": "DocType",
"link_to": "Appointment Booking Settings",
"parent_key": "section-other-settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "stock-reposting-settings",
"label": "Stock Reposting Settings",
"link_doctype": "DocType",
"link_to": "Stock Reposting Settings",
"parent_key": "section-other-settings",
"switches_app": 0
},
{
"added": 0,
"collapsible": 1,
"hidden": 0,
"item_type": "Section",
"keep_closed": 1,
"key": "section-organization",
"label": "Organization",
"link_doctype": "",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "company",
"label": "Company",
"link_doctype": "DocType",
"link_to": "Company",
"parent_key": "section-organization",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "letter-head",
"label": "Letter Head",
"link_doctype": "DocType",
"link_to": "Letter Head",
"parent_key": "section-organization",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "department",
"label": "Department",
"link_doctype": "DocType",
"link_to": "Department",
"parent_key": "section-organization",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "branch",
"label": "Branch",
"link_doctype": "DocType",
"link_to": "Branch",
"parent_key": "section-organization",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "user",
"label": "User",
"link_doctype": "DocType",
"link_to": "User",
"parent_key": "section-organization",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "email-account",
"label": "Email Account",
"link_doctype": "DocType",
"link_to": "Email Account",
"parent_key": "section-organization",
"switches_app": 0
},
{
"added": 0,
"collapsible": 1,
"hidden": 0,
"item_type": "Section",
"keep_closed": 1,
"key": "section-home",
"label": "Home",
"link_doctype": "",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "item",
"label": "Item",
"link_doctype": "DocType",
"link_to": "Item",
"parent_key": "section-home",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "customer",
"label": "Customer",
"link_doctype": "DocType",
"link_to": "Customer",
"parent_key": "section-home",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "supplier",
"label": "Supplier",
"link_doctype": "DocType",
"link_to": "Supplier",
"parent_key": "section-home",
"switches_app": 0
},
{
"added": 0,
"collapsible": 0,
"hidden": 0,
"item_type": "DocType",
"keep_closed": 0,
"key": "sales-invoice",
"label": "Sales Invoice",
"link_doctype": "DocType",
"link_to": "Sales Invoice",
"parent_key": "section-home",
"switches_app": 0
}
],
"owner": "Administrator",
"standard": 1,
"title": "Setup",
"user": ""
}