Hello Everyone,
I want know how to check html type field have value or not ?
Example:
I have one field like report_rich which is html type field.
So how to check value of report_rich available or not
Thanks in advance,
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello Everyone,
I want know how to check html type field have value or not ?
Example:
I have one field like report_rich which is html type field.
So how to check value of report_rich available or not
Thanks in advance,
Hello
Please refer this link, May be helpful
https://www.odoo.com/forum/help-1/question/check-if-html-field-is-empty-on-qweb-report-135060
Hello You just print your report and see ..
And
Define Your Html field in qweb template like below :
<div>
<span style="font-size:10px;" t-field="doc.report_rich"/>
</div>
I hope it's help you.
Hello Manish,
Thanks for your answer.
I want to skip some portion if not have value of report_rich field.
How can achieve this ?
Just add your if else condition in your qweb
for example
<t t-if="p.code == 'BASIC'">
executable statement..
</t>
for false condition,
<t t-if="not p.code == 'BASIC'">
executable statement..
</t>
Dear ,
Try to use if statement like this:
<t t-if="o.report_rich">
<span t-field="o.report_rich"/>
</t>
Hope help you ...
I have tried your code, but not working.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký