Odoo Help

0

how to use if condition in rml report of customer invoice

By
Ali Ravani
on 7/10/13, 7:43 AM 7,053 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)
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.

SIRIUS-INFO
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.

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.

Register

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)

Stats

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