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

Is it possible to have a boolean function in a loop (repeatIn) in reports ?

By
Wii2zO
on 5/2/13, 4:19 PM 1,053 views

Hello,

All is in the question, I would like to execute a loop based on the result of one of my boolean python function...

I tried this :

[[ repeatIn(filter( lambda a: my_bool_function(a) , objects), 'a') ]]

and this

[[repeatIn(my_bool_function(objects),'line')]]

but it didn't work... Any ideas ??

Thank you !

0

repeatln is normally on a list of items which makes it possible to also show data from these lines, e.g. invoice or sales order lines. A possible path might be to create a Python function which returns a list instead.

Thank you, it works !

Wii2zO
on 5/6/13, 3:26 PM

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: 5/2/13, 4:19 PM
Seen: 1053 times
Last updated: 3/16/15, 8:10 AM