Odoo Help


Conditional field visibility on sxw report

Victor Godayer
on 3/4/14, 11:55 AM 636 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


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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: 636 times
Last updated: 3/16/15, 8:10 AM