How can I merge two filters in an RML report?
This one: [[repeatIn(filter(lambda l: l.x_printable_choice==0 ,o.invoice_line), 'l')]]
and the one above: [[repeatIn(filter(lambda l: l.name.find('>')==-1, o.invoice_line), 'l')]]
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How can I merge two filters in an RML report?
This one: [[repeatIn(filter(lambda l: l.x_printable_choice==0 ,o.invoice_line), 'l')]]
and the one above: [[repeatIn(filter(lambda l: l.name.find('>')==-1, o.invoice_line), 'l')]]
Try the below code:-
[[repeatIn(filter(lambda l: l.name.find('>')==-1 and l.x_printable_choice==0, o.invoice_line), 'l')]]
That worked perfectly! thank you very much Prakash!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
मार्च 15
|
3676 | ||
|
3
जुल॰ 24
|
8459 | ||
|
2
दिस॰ 17
|
3164 | ||
|
0
अप्रैल 17
|
3163 | ||
|
1
अप्रैल 17
|
4551 |