更新site plan字段

This commit is contained in:
jingrow 2025-04-20 20:47:02 +08:00
parent f701a46563
commit 148373eea0
2 changed files with 6 additions and 11 deletions

View File

@ -3,7 +3,6 @@
"allow_rename": 1,
"autoname": "Prompt",
"creation": "2022-01-28 20:07:37.055861",
"pagetype": "PageType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
@ -88,8 +87,7 @@
"fieldtype": "Currency",
"in_list_view": 1,
"label": "Price (USD)",
"options": "USD",
"reqd": 1
"options": "USD"
},
{
"depends_on": "eval:pg.document_type == 'Site'",
@ -241,12 +239,13 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2024-07-12 13:36:14.737846",
"modified": "2025-04-20 20:46:00.570720",
"modified_by": "Administrator",
"module": "Jcloud",
"name": "Site Plan",
"naming_rule": "Set by user",
"owner": "Administrator",
"pagetype": "PageType",
"permissions": [
{
"create": 1,
@ -280,6 +279,7 @@
}
],
"quick_entry": 1,
"row_format": "Dynamic",
"sort_field": "price_usd",
"sort_order": "ASC",
"states": [],

View File

@ -16,16 +16,11 @@ class SitePlan(Plan):
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from jcloud.jcloud.pagetype.site_plan_allowed_app.site_plan_allowed_app import SitePlanAllowedApp
from jcloud.jcloud.pagetype.site_plan_release_group.site_plan_release_group import SitePlanReleaseGroup
from jingrow.core.pagetype.has_role.has_role import HasRole
from jingrow.types import DF
from jcloud.jcloud.pagetype.site_plan_allowed_app.site_plan_allowed_app import (
SitePlanAllowedApp,
)
from jcloud.jcloud.pagetype.site_plan_release_group.site_plan_release_group import (
SitePlanReleaseGroup,
)
allow_downgrading_from_other_plan: DF.Check
allowed_apps: DF.Table[SitePlanAllowedApp]
cluster: DF.Link | None