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

I have three fields in qweb report.

field1

field2

field3

if all the three fields have values then it will print like below

value1

value2

value3

but if the field 1 or field2 is empty. then it will show large blank space, then print field3 value. How can I avoid this blank space if the above fields have no value?

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

Hi Remya,

Use below condition code , if the value has some data then it will go inside the condition and would break otherwise will be as it is (no break) . 

<div t-if="record.phone.raw_value"><field name="phone"/></div>

Try out

Thanks.

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

Hello Remya,

You need apply css/style for fix width of rows in table/div
Example: style="line-height:70px;"

Regards,




Email:   odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 25
1859
2
thg 3 25
2419
4
thg 11 24
7814
1
thg 3 24
2693
3
thg 9 23
25678