属性字段¶
属性字段(或称属性)通过添加各种 字段类型 来支持 表单 视图的自定义。这些字段通过添加值来存储和管理信息。
属性字段与常规字段
属性的作用类似于伪字段;它们的行为与常规字段相似,但不会作为列保存在数据库中。它们还依赖于一个已定义的 母级记录。
Example
为一个*任务*添加属性,会在同一项目的*所有任务*中插入一个字段,而其他项目的任务则不受影响。
添加属性字段¶
To add a first property field to a form view, click the (Actions) icon, then select Edit Properties.
在弹窗中,输入属性的 标签,选择一个 字段类型,然后根据所选类型配置该字段:
字段类型 |
使用 |
选项 |
|---|---|---|
单行短文本 |
如果需要,可输入 默认值。 |
|
多行完整文本 |
如果需要,可输入 默认值。 |
|
HTML field |
如果需要,可输入 默认值。 |
|
选中或未选中的状态 |
选择 默认状态。 |
|
整数(正数、负数或零,不带小数) |
如果需要,可输入 默认值。 |
|
小数 (正数、负数或零,不带小数) |
如果需要,可输入 默认值。 |
|
Selection of a (cost) currency |
如果需要,可输入 默认值。 |
|
在日历上选择一个日期 |
如果需要,可选择一个 默认值。 |
|
在日历上选择一个日期,在时钟上选择一个时间 |
如果需要,可选择一个 默认值。 |
|
从一组预定义值中选择一个值 |
点击 添加值 并输入 选项名称,以添加一个可选项。 如果需要,可点击 )按钮,将某个选项设为默认。 使用 )按钮拖放选项以重新排序。 点击 )按钮删除一个选项。 |
|
以标签形式选择多个值 |
输入一个 标签 名称,然后按回车键保存。 点击标签并选择另一种颜色,以更改其颜色。 |
|
从另一个模型中选择一条记录 |
输入 模型 名称。如果需要,可配置其 域 以筛选记录。 如果需要,可选择一个 默认值。 |
|
从另一个模型中选择多条记录 |
输入 模型 名称。如果需要,可配置其 域 以筛选记录。 如果需要,可选择一个 默认值。 |
|
分隔符 |
将多个属性分组到一个可折叠的标签下 |
注解
Enter a Suffix to add a contextual description after a field’s value. For example, to indicate the cost per kilometer, use the Monetary field and name it Cost, then enter per km as the Suffix field. The property then displays the following: Cost [added value] per km.
Enable Display in Cards to select whether to display the property in the Kanban, List, or Calendar views’ cards for every field.
启用 AI`以向属性添加:ref:`AI 字段 <ai/add-a-new-field/properties>。编写:guilabel:
提示词`和/或输入/field`以插入动态值。To add another property, click Add a Property at the bottom of the form.
小技巧
要编辑现有属性,请将光标悬停在属性上:
点击 )按钮打开一个弹窗来修改属性。在弹窗中,点击 :icon:`fa-chevron-up`(上)或 :icon:` fa-chevron-down`(下)chevron 可向上或向下移动属性。
点击:icon:
fa-trash删除,然后点击:guilabel:`删除`以永久删除它。使用 )图标拖放属性以重新排序或重新分组。
在弹窗外点击以保存已添加的属性。
跨应用的属性¶
属性字段可以在多个模型的 表单视图 中定义。一旦设置,该属性将由链接到同一母级的所有记录共享。
应用
模型
上级
会计
考评
批准
批准请求
类别
CRM
员工
活动
车队
前台
服务台
Inventory
Knowledge
Maintenance
Meeting Rooms
房间
办公室
Payroll
Planning
项目 / 现场服务
招募
应聘人
Repairs
Sales / etc.
产品
类别
注解
The following models do not depend on any parent and apply to all records:
Contact Form in the Contacts app
Mailing List Contacts in the Email Marketing app