Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: created workspace custom block doctype to store custom blocks
(cherry picked from commit 45c05be)
- Loading branch information
1 parent
d46a7c9
commit d08401d
Showing
4 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
39 changes: 39 additions & 0 deletions
39
frappe/desk/doctype/workspace_custom_block/workspace_custom_block.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"creation": "2023-05-17 14:49:19.454932", | ||
"doctype": "DocType", | ||
"editable_grid": 1, | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"custom_block_name", | ||
"label" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "custom_block_name", | ||
"fieldtype": "Link", | ||
"in_list_view": 1, | ||
"label": "Custom Block Name", | ||
"options": "Custom HTML Block" | ||
}, | ||
{ | ||
"fieldname": "label", | ||
"fieldtype": "Data", | ||
"in_list_view": 1, | ||
"label": "Label" | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"istable": 1, | ||
"links": [], | ||
"modified": "2023-05-17 14:50:45.575609", | ||
"modified_by": "Administrator", | ||
"module": "Desk", | ||
"name": "Workspace Custom Block", | ||
"owner": "Administrator", | ||
"permissions": [], | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
9 changes: 9 additions & 0 deletions
9
frappe/desk/doctype/workspace_custom_block/workspace_custom_block.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2023, Frappe Technologies and contributors | ||
# For license information, please see license.txt | ||
|
||
# import frappe | ||
from frappe.model.document import Document | ||
|
||
|
||
class WorkspaceCustomBlock(Document): | ||
pass |