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

Rml report if statement

By
omkar
on 10/28/14, 8:59 AM 1,101 views

Hi Friends,

I Struck with the if statement in rml report.

I had a check box, if the user click on the check box , in the rml report the inner table should display the lines other wise that table should not be visible.

Thanks,

Omkar

 

 

0

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

there is only 10 kind of people the ones that understand binary ... and others

Bole
On 10/30/14, 8:28 AM

In rml you can use any python code inside double brackets... like:  [[ code comes here ]]
so you can define something like:

<para style=something> [[ check_box and display_some_vals or removeParentNode(para) ]] </para>

syntax: check_box and display_some_vals or remove parentnode is equvivalent to :

if check_box(is checked) then display some vals or remove para node.. 

hope it helps.. 
if you still need some help please post your rml line defining particular line...

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

1 follower(s)

Stats

Asked: 10/28/14, 8:59 AM
Seen: 1101 times
Last updated: 3/16/15, 8:10 AM