Odoo Help

Welcome!

This community 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.

0

how to use if condition in rml report of customer invoice

By
Ali Ravani
on 7/10/13, 7:43 AM 5,826 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"

else

                   " 22586 ann arbor trail dearborn heits mi 48127"

Thanks........

5

Sudhir Arya (SA)

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

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

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
0
Abdul
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 7/10/13, 7:43 AM
Seen: 5826 times
Last updated: 3/16/15, 8:10 AM