diff --git a/manufacturing_utilities/dock/9llleeuuvu/9llleeuuvu.json b/manufacturing_utilities/dock/9llleeuuvu/9llleeuuvu.json index 626d01a..d50b117 100644 --- a/manufacturing_utilities/dock/9llleeuuvu/9llleeuuvu.json +++ b/manufacturing_utilities/dock/9llleeuuvu/9llleeuuvu.json @@ -9,13 +9,13 @@ "added": 0, "hidden": 0, "icon": "clipboard-list", - "link_to": "Manufacturing Utilities", + "link_to": "Overview", "link_type": "Workspace", - "title": "Manufacturing Utilities" + "title": "Manufacturing Overview" } ], - "modified": "2026-10-17 14:57:25.999267", - "modified_by": "Administrator", + "modified": "2026-11-15 10:26:57.917854", + "modified_by": "christian@prothmann.com", "mount_on": "erpnext", "name": "9llleeuuvu", "owner": "Administrator", diff --git a/manufacturing_utilities/fixtures/custom_docperm.json b/manufacturing_utilities/fixtures/custom_docperm.json new file mode 100644 index 0000000..9dadcf5 --- /dev/null +++ b/manufacturing_utilities/fixtures/custom_docperm.json @@ -0,0 +1,54 @@ +[ + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "impersonate": 0, + "import": 0, + "mask": 0, + "modified": "2026-11-15 10:44:25.790110", + "name": "tclva0cbjp", + "parent": "Manufacturing Overview Settings", + "permlevel": 0, + "print": 0, + "read": 1, + "report": 0, + "role": "Manufacturing Utilities Manager", + "select": 1, + "share": 0, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "docstatus": 0, + "doctype": "Custom DocPerm", + "email": 0, + "export": 1, + "if_owner": 0, + "impersonate": 0, + "import": 0, + "mask": 0, + "modified": "2026-11-15 10:44:46.715046", + "name": "tjjc0i927o", + "parent": "Label Composer Template", + "permlevel": 0, + "print": 0, + "read": 1, + "report": 0, + "role": "Manufacturing Utilities Manager", + "select": 1, + "share": 0, + "submit": 0, + "write": 1 + } +] \ No newline at end of file diff --git a/manufacturing_utilities/fixtures/role.json b/manufacturing_utilities/fixtures/role.json new file mode 100644 index 0000000..c5f32f6 --- /dev/null +++ b/manufacturing_utilities/fixtures/role.json @@ -0,0 +1,28 @@ +[ + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2026-11-15 10:42:57.683981", + "name": "Manufacturing Utilities User", + "restrict_to_domain": null, + "role_name": "Manufacturing Utilities User", + "two_factor_auth": 0 + }, + { + "desk_access": 1, + "disabled": 0, + "docstatus": 0, + "doctype": "Role", + "home_page": null, + "is_custom": 0, + "modified": "2026-11-15 10:43:04.983838", + "name": "Manufacturing Utilities Manager", + "restrict_to_domain": null, + "role_name": "Manufacturing Utilities Manager", + "two_factor_auth": 0 + } +] \ No newline at end of file diff --git a/manufacturing_utilities/hooks.py b/manufacturing_utilities/hooks.py index d1618c9..763bab9 100644 --- a/manufacturing_utilities/hooks.py +++ b/manufacturing_utilities/hooks.py @@ -322,7 +322,7 @@ fixtures = [ ["name", "=", "Manufacturing Overview"] ] }, - { + { "dt": "Custom Field", "filters": [ ["dt", "=", "Network Printer Settings"], @@ -332,5 +332,23 @@ fixtures = [ "custom_paper_height_mm" ]] ] + }, + { + "dt": "Role", + "filters": [ + ["name", "in", [ + "Manufacturing Utilities User", + "Manufacturing Utilities Manager" + ]] + ] + }, + { + "dt": "Custom DocPerm", + "filters": [ + ["role", "in", [ + "Manufacturing Utilities User", + "Manufacturing Utilities Manager" + ]] + ] } ] \ No newline at end of file diff --git a/manufacturing_utilities/manufacturing_overview/sidebar/manufacturing_overview/manufacturing_overview.json b/manufacturing_utilities/manufacturing_overview/sidebar/manufacturing_overview/manufacturing_overview.json index 1335805..7c3a4e9 100644 --- a/manufacturing_utilities/manufacturing_overview/sidebar/manufacturing_overview/manufacturing_overview.json +++ b/manufacturing_utilities/manufacturing_overview/sidebar/manufacturing_overview/manufacturing_overview.json @@ -1,9 +1,9 @@ { "app": "manufacturing_utilities", - "creation": "2026-10-17 13:26:01.965594", + "creation": "2026-11-15 10:27:53.188560", "docstatus": 0, "doctype": "Sidebar", - "header_icon": "clipboard-list", + "header_icon": "hammer", "idx": 0, "items": [ { @@ -11,23 +11,55 @@ "child": 0, "collapsible": 1, "hidden": 0, - "icon": "setting-gear", + "icon": "wallpaper", "indent": 0, "is_default_module": 0, "keep_closed": 0, - "label": "Manufacturing Overview SettingsManufacturing Overview Settings", + "label": "Overview", + "link_to": "Overview", + "link_type": "Workspace", + "open_in_new_tab": 1, + "show_arrow": 0, + "type": "Link" + }, + { + "added": 0, + "child": 0, + "collapsible": 1, + "hidden": 0, + "icon": "settings", + "indent": 0, + "is_default_module": 0, + "keep_closed": 0, + "label": "Manufacturing Overview Settings", "link_to": "Manufacturing Overview Settings", "link_type": "DocType", "open_in_new_tab": 1, "show_arrow": 0, "type": "Link" + }, + { + "added": 0, + "child": 0, + "collapsible": 1, + "hidden": 0, + "icon": "settings", + "indent": 0, + "is_default_module": 0, + "keep_closed": 0, + "label": "Label Composer Template", + "link_to": "Label Composer Template", + "link_type": "DocType", + "open_in_new_tab": 1, + "show_arrow": 0, + "type": "Link" } ], - "modified": "2026-10-17 15:57:49.122018", - "modified_by": "Administrator", + "modified": "2026-11-15 10:33:12.580844", + "modified_by": "christian@prothmann.com", "module": "Manufacturing Overview", "name": "Manufacturing Overview", - "owner": "Administrator", + "owner": "christian@prothmann.com", "standard": 1, "title": "Manufacturing Overview" } diff --git a/manufacturing_utilities/manufacturing_overview/workspace/manufacturing_utilities/manufacturing_utilities.json b/manufacturing_utilities/manufacturing_overview/workspace/manufacturing_utilities/manufacturing_utilities.json deleted file mode 100644 index bdbdc70..0000000 --- a/manufacturing_utilities/manufacturing_overview/workspace/manufacturing_utilities/manufacturing_utilities.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "charts": [], - "content": "[{\"id\": \"N9JUiq_ZQJ\", \"type\": \"custom_block\", \"data\": {\"custom_block_name\": \"Manufacturing Overview\", \"col\": 12}}]", - "creation": "2026-10-17 13:37:40.192516", - "custom_blocks": [ - { - "custom_block_name": "Manufacturing Overview", - "label": "Manufacturing Overview" - } - ], - "docstatus": 0, - "doctype": "Workspace", - "for_user": "", - "hide_custom": 0, - "icon": "pencil-line", - "idx": 0, - "indicator_color": "green", - "is_hidden": 0, - "label": "Manufacturing Utilities", - "link_type": "DocType", - "links": [], - "modified": "2026-10-17 14:57:49.758680", - "modified_by": "Administrator", - "module": "Manufacturing Overview", - "name": "Manufacturing Utilities", - "number_cards": [], - "owner": "Administrator", - "parent_page": "", - "public": 1, - "quick_lists": [], - "roles": [], - "sequence_id": 57.0, - "shortcuts": [], - "standard": 1, - "title": "Manufacturing Utilities", - "type": "Workspace" -}