ODOO线中断字段名称



我尝试使用字段名称中的线路断开,因为插入字段是由长字段名称引起的小引起的...我尝试了 <![CDATA[&#xD;]]> and <![CDATA[&#xA;]]>和field string中的 n在Python文件中,但没有任何效用。

这是我要更改的部分,Wordnumbertwo应该在其中打破。

<attribute name="string">Wordnumberone/ wordnumbertwo</attribute>

有什么建议如何完成线路休息?

最后我这样解决了:

对于由expr="pathtofield"触发的特定字段,旧的CSS类oe_form_labeloe_form_label_new替换。

<xpath expr="pathtofield" position="attributes">
    <attribute name="class">oe_form_label oe_form_label_new</attribute>
</xpath>

CSS课程会划分我的字段:

.oe_form_label_new {white-space: normal !important;}