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!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
0
März 15
|
3738 | ||
|
3
Juli 24
|
8508 | ||
|
2
Dez. 17
|
3178 | ||
|
0
Apr. 17
|
3211 | ||
|
1
Apr. 17
|
4592 |