如何在0doo 8
在`XMLù小组中:
<field name="taxe"/>
在py
档案中:
'taxe' : fields.selection([('17','17 %'),('12','12 %'),('10','10 %')],'Taxe Etablissement'),
答案 0 :(得分:5)
您可以在xml字段定义中使用属性样式,例如:
<field name="field_x" style="width:50%%" />
或
<field name="field_y" style="width:100px" />
百分比将使用父元素给出的空间。因此,如果您使用2列布局(典型的odoo组),50%将使用25%的全宽度。 别忘了逃避'%'。