Odoo Help


Conditional field visibility on sxw report

Victor Godayer
on 3/4/14, 11:55 AM 918 views


I have a date field that I would like to show in the PDF quotation only if it is filled on the form view.

It works already for other field, but this one does not, and I don't understand why.

Here is the line in the sxw report :

[[ o.x_date_delivery and 'Delivery date : ']][[ formatLang(o.x_date_delivery,date=True) ]]

And this is my field in the xml declaration :

<field name="x_date_delivery"> </field>

I can't understand why it works for other field and not this one.

Thank you for your help


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 3/4/14, 11:55 AM
Seen: 918 times
Last updated: 3/16/15, 8:10 AM