Anu*_*ani 5 css xml forms field odoo
我有一个表单视图,如下所示:
xml 看起来像这样:
<notebook>
<page>
<group string="In case of student employee or intern">
<field name="immatriculation" attrs="{'readonly':True}"/>
<field name="studentStatus" attrs="{'readonly':True}"/>
<field name="studentQuestionnaire" attrs="{'readonly':True}"/>
<field name="studentOtherjobs" attrs="{'readonly':True}"/>
</group>
</page>
</notebook>
Run Code Online (Sandbox Code Playgroud)
我想增加这些字段的宽度,以便所有文本(例如学生身份确认(强制实习))都位于一行中。我在下面尝试过,但没有看到宽度有任何变化:
<field name="studentStatus" attrs="{'readonly':True}" style="width:200px"/>
Run Code Online (Sandbox Code Playgroud)
更改组内这些字段的宽度的正确方法是什么?
这有点棘手,但您可以尝试一个简单的解决方案,将 colspan 设置为使用笔记本页面的整个宽度。
<group string="In case of student employee or intern" colspan="4">