pagetype元数据增加hide_id_in_list字段用于控制列表页是否显示ID

This commit is contained in:
jingrow 2026-05-14 21:48:08 +08:00
parent be8b185762
commit 91794a3e87
2 changed files with 15 additions and 7 deletions

View File

@ -64,6 +64,7 @@
"color",
"show_preview_popup",
"show_owner_in_list",
"hide_id_in_list",
"show_name_in_global_search",
"list_template",
"detail_template",
@ -113,8 +114,7 @@
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Package",
"options": "Package",
"reqd": 0
"options": "Package"
},
{
"fieldname": "module",
@ -697,8 +697,7 @@
"depends_on": "istable",
"fieldname": "grid_page_length",
"fieldtype": "Int",
"label": "Grid Page Length",
"non_negative": 1
"label": "Grid Page Length"
},
{
"default": "Dynamic",
@ -719,8 +718,16 @@
"fieldtype": "Link",
"label": "Detail Template",
"options": "Detail Page Template"
},
{
"default": "0",
"depends_on": "eval:!pg.istable",
"fieldname": "hide_id_in_list",
"fieldtype": "Check",
"label": "Hide ID In List"
}
],
"grid_page_length": 50,
"icon": "fa fa-bolt",
"idx": 6,
"index_web_pages_for_search": 1,
@ -801,7 +808,7 @@
"link_pagetype": "Energy Point Rule"
}
],
"modified": "2025-04-15 12:37:26.992585",
"modified": "2026-05-14 21:44:21.803100",
"modified_by": "Administrator",
"module": "Core",
"name": "PageType",

View File

@ -106,7 +106,6 @@ class PageType(Page):
allow_guest_to_view: DF.Check
allow_import: DF.Check
allow_rename: DF.Check
package: DF.Link | None
autoname: DF.Data | None
beta: DF.Check
color: DF.Data | None
@ -116,7 +115,7 @@ class PageType(Page):
default_view: DF.Literal[None]
description: DF.SmallText | None
detail_template: DF.Link | None
document_type: DF.Literal["", "Page", "Setup", "System", "Other"]
document_type: DF.Literal["", "Document", "Setup", "System", "Other"]
documentation: DF.Data | None
editable_grid: DF.Check
email_append_to: DF.Check
@ -125,6 +124,7 @@ class PageType(Page):
force_re_route_to_default_view: DF.Check
grid_page_length: DF.Int
has_web_view: DF.Check
hide_id_in_list: DF.Check
hide_toolbar: DF.Check
icon: DF.Data | None
image_field: DF.Data | None
@ -145,6 +145,7 @@ class PageType(Page):
module: DF.Link
naming_rule: DF.Literal["", "Set by user", "Autoincrement", "By fieldname", "By \"Naming Series\" field", "Expression", "Expression (old style)", "Random", "By script"]
nsm_parent_field: DF.Data | None
package: DF.Link | None
permissions: DF.Table[PagePerm]
queue_in_background: DF.Check
quick_entry: DF.Check