Odoo Help


JasperReports won't evaluate null nor 0

on 2/21/13, 10:49 AM 622 views

I have a JasperReport report of the sales document. I want to print "inclusive" if the price of the detail line is zero. For that purpose I put a static text field and in the print when expression :


$F{Unit_Price-price_unit} is the unit price report field ( it prints fine on the detail lines).

If I do the reverse


the static text get printed on lines with a price != 0.

But in both cases the static text is never printed on the line where the price is zero.

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: 2/21/13, 10:49 AM
Seen: 622 times
Last updated: 3/16/15, 8:10 AM