请在窗体视图odoo 8中设置如何设置框的固定大小

时间:2016-04-19 20:12:03

标签: openerp

如何在0doo 8

的表单视图中修复框的大小

在`XMLù小组中:

<field name="taxe"/>

py档案中:

'taxe' : fields.selection([('17','17 %'),('12','12 %'),('10','10 %')],'Taxe Etablissement'),

enter image description here

1 个答案:

答案 0 :(得分:5)

您可以在xml字段定义中使用属性样式,例如:

<field name="field_x" style="width:50%%" />

<field name="field_y" style="width:100px" />

百分比将使用父元素给出的空间。因此,如果您使用2列布局(典型的odoo组),50%将使用25%的全宽度。 别忘了逃避'%'。