Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
6118 Переглядів

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?

Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Найкраща відповідь

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

   

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
квіт. 25
1048
2
бер. 25
1181
4
лист. 24
6946
1
бер. 24
1866
3
вер. 23
24616