- class
要设置在生成的元素上的 HTML class 。
样式使用 Bootstrap 框架和 UI 图标。常见的 Odoo 类包括:
oe_inline:防止字段后通常出现的换行,并限制其跨度;oe_left、oe_right:将元素 浮动 到对应方向;oe_read_only、oe_edit_only:仅在对应的表单模式下显示该元素;oe_avatar:用于图像字段,将图像显示为“头像”(最大 90x90 的正方形);oe_stat_button:定义一种特殊的渲染方式,在动态显示信息的同时可点击以触发动作。
Example
<field name="fname" class="oe_inline oe_left oe_avatar"/>
Example
<button type="object" name="ACTION" class="oe_stat_button" icon="FONT_AWESOME" help="HELP"> <div class="o_field_widget o_stat_info"> <span class="o_stat_value"><FIELD/></span> <span class="o_stat_text">TEXT</span> </div> </button>
- 要求
可选
- Type
- 默认值
'