Browse Source

Workspace add qwik and mst

version2
venkataakhil 1 year ago
parent
commit
db6a174c46
  1. 27
      smart_service/fixtures/custom_docperm.json
  2. 10
      smart_service/fixtures/dashboard_chart.json
  3. 32
      smart_service/fixtures/workspace.json
  4. 4
      smart_service/transactions/doctype/publish/publish.js

27
smart_service/fixtures/custom_docperm.json

@ -8018,6 +8018,33 @@
"submit": 0, "submit": 0,
"write": 1 "write": 1
}, },
{
"amend": 0,
"cancel": 0,
"create": 1,
"delete": 1,
"docstatus": 0,
"doctype": "Custom DocPerm",
"email": 1,
"export": 1,
"if_owner": 0,
"import": 1,
"modified": "2023-09-21 17:44:16.249720",
"name": "a78d0c4f4a",
"parent": "Qwik Service",
"parentfield": "permissions",
"parenttype": "DocType",
"permlevel": 0,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"select": 0,
"set_user_permissions": 0,
"share": 1,
"submit": 0,
"write": 1
},
{ {
"amend": 0, "amend": 0,
"cancel": 0, "cancel": 0,

10
smart_service/fixtures/dashboard_chart.json

@ -17,7 +17,7 @@
"heatmap_year": null, "heatmap_year": null,
"is_public": 1, "is_public": 1,
"is_standard": 0, "is_standard": 0,
"last_synced_on": "2023-09-01 16:18:23.846023", "last_synced_on": "2023-09-27 10:37:08.702390",
"modified": "2022-03-28 14:33:10.648848", "modified": "2022-03-28 14:33:10.648848",
"module": null, "module": null,
"name": "Variant mapping", "name": "Variant mapping",
@ -97,7 +97,7 @@
"heatmap_year": null, "heatmap_year": null,
"is_public": 1, "is_public": 1,
"is_standard": 0, "is_standard": 0,
"last_synced_on": "2023-09-01 15:55:26.540496", "last_synced_on": "2023-09-26 18:48:15.248672",
"modified": "2022-04-12 19:59:36.324953", "modified": "2022-04-12 19:59:36.324953",
"module": null, "module": null,
"name": "Procedure", "name": "Procedure",
@ -137,7 +137,7 @@
"heatmap_year": null, "heatmap_year": null,
"is_public": 1, "is_public": 1,
"is_standard": 0, "is_standard": 0,
"last_synced_on": "2023-09-01 15:55:26.502774", "last_synced_on": "2023-09-26 18:48:14.848613",
"modified": "2022-04-11 18:23:00.494268", "modified": "2022-04-11 18:23:00.494268",
"module": null, "module": null,
"name": "Publish Status", "name": "Publish Status",
@ -177,7 +177,7 @@
"heatmap_year": null, "heatmap_year": null,
"is_public": 1, "is_public": 1,
"is_standard": 0, "is_standard": 0,
"last_synced_on": "2023-09-01 15:55:26.483834", "last_synced_on": "2023-09-26 18:48:14.540713",
"modified": "2022-05-10 13:05:25.011604", "modified": "2022-05-10 13:05:25.011604",
"module": null, "module": null,
"name": "KM Mapping", "name": "KM Mapping",
@ -217,7 +217,7 @@
"heatmap_year": null, "heatmap_year": null,
"is_public": 1, "is_public": 1,
"is_standard": 0, "is_standard": 0,
"last_synced_on": "2023-09-01 15:55:26.503588", "last_synced_on": "2023-09-26 18:48:14.645334",
"modified": "2022-04-21 10:00:30.763417", "modified": "2022-04-21 10:00:30.763417",
"module": null, "module": null,
"name": "Publish", "name": "Publish",

32
smart_service/fixtures/workspace.json

@ -4341,9 +4341,39 @@
"parentfield": "links", "parentfield": "links",
"parenttype": "Workspace", "parenttype": "Workspace",
"type": "Link" "type": "Link"
},
{
"dependencies": null,
"hidden": 0,
"icon": null,
"is_query_report": 0,
"label": "Qwik Service",
"link_to": "Qwik Service",
"link_type": "DocType",
"onboard": 0,
"only_for": null,
"parent": "Transaction",
"parentfield": "links",
"parenttype": "Workspace",
"type": "Link"
},
{
"dependencies": null,
"hidden": 0,
"icon": null,
"is_query_report": 0,
"label": "Special Tool Information",
"link_to": "Special Tool Information",
"link_type": "DocType",
"onboard": 0,
"only_for": null,
"parent": "Transaction",
"parentfield": "links",
"parenttype": "Workspace",
"type": "Link"
} }
], ],
"modified": "2023-09-01 16:14:30.325889", "modified": "2023-09-25 18:08:40.361885",
"module": "Transactions", "module": "Transactions",
"name": "Transaction", "name": "Transaction",
"onboarding": null, "onboarding": null,

4
smart_service/transactions/doctype/publish/publish.js

@ -95,7 +95,7 @@ frappe.ui.form.on("Publish", {
} }
if (frm.doc.docstatus == 1 && frm.doc.publish_module == "Special Tool") { if (frm.doc.docstatus == 1 && frm.doc.publish_module == "Special Tool") {
cur_frm.set_df_property("special_tool_publish_docs", "read_only", 1); cur_frm.set_df_property("special_tool_publish_docs", "read_only", 1);
// cur_frm.set_df_property("special_tool_publish_docs", "hidden", 1); cur_frm.set_df_property("special_tool_publish_docs", "hidden", 1);
cur_frm.refresh_field("special_tool_publish_docs"); cur_frm.refresh_field("special_tool_publish_docs");
cur_frm.remove_custom_button("Add To Publish"); cur_frm.remove_custom_button("Add To Publish");
if (frm.doc.special_tool_publish.length > 0) { if (frm.doc.special_tool_publish.length > 0) {
@ -161,8 +161,6 @@ frappe.ui.form.on("Publish", {
cur_frm.refresh_field("special_tool_publish_docs"); cur_frm.refresh_field("special_tool_publish_docs");
cur_frm.refresh_field("kilometer_mapping_details"); cur_frm.refresh_field("kilometer_mapping_details");
cur_frm.remove_custom_button("Add To Publish"); cur_frm.remove_custom_button("Add To Publish");
cur_frm.set_df_property("special_tool_publish_docs", "hidden", 1);
cur_frm.refresh_field("special_tool_publish_docs"); cur_frm.refresh_field("special_tool_publish_docs");
} }

Loading…
Cancel
Save