Odoo Help


how to use if condition in rml report of customer invoice

Ali Ravani
on 7/10/13, 7:43 AM 6,136 views

the value comes from payment method field if the payment_method field = "prepayment"

then this string have to print in rml reprot = "2946 W. Springer Ct., Mayfield, KY, 42066"


                   " 22586 ann arbor trail dearborn heits mi 48127"



Sudhir Arya (SA)

--Sudhir Arya (SA)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow




Sudhir Arya (SA)
On 7/13/13, 4:05 AM

Try this in rml:

[[ (payment_method_field == "prepayment" and "2946 W. Springer Ct., Mayfield, KY, 42066") or "22586 ann arbor trail dearborn heits mi 48127" ]]

Just for info : i needed to replace " with ' to make it run.

David Verove
on 8/21/14, 11:44 AM
On 7/12/13, 8:12 AM

i 've same problem with u, Ali..but it's little bit different with my problem. i've condition that if total object of line item surpass my limit number, then the rest will be printed into another page.

Big appreciate for your response Thank you.

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