Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
50172 Lượt xem

i want to make a separator between the fields in the form view because i have many fields in the form view and i need to separate between them to make it easy to check fields.

i am using OpenERP v7

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Old question, but I stumbled over the same problem and want to share my response: 

-> solved it by adding style="margin-right:10px;" on the field.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

I also stumbled into a similar problem. Manually inserting a non-breaking space ( ) between the fields did not work - even when using its Unicode value.

I ended up using an 'invisible comma' (⁣).

eg. <field name="some field"/>&#x2063;<field name="some other field"/>
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Really i was asking for a line seperator between two fields because i have two sets of field and i want to make a line space betwwen the two fields : i do that by adding new field called space :

in .py file :

'space': fields.char(' ', readonly=True)

in .xml file :

<field name="space"/> 

the result is empty line space.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
add empty div with heigth tag between gruops.it will give space between to groups.
<div style="height:50px">
</div>
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất


is nice (horizontal ruler}
Ảnh đại diện
Huỷ bỏ

that code has been translated directly to html
hr tag, will not give such a nice line

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 15
7135
4
thg 3 15
5839
1
thg 11 22
3355
0
thg 12 19
6302
2
thg 11 19
4166