Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3728 Widoki

Hi Guys, Hope you doing well !!! hey i need a little help, i want to print a report RML is okay .... but i have a one2many field with multiple line in that one2many field now i like to print only selected line from one2many field, where a kind of conditions holds true.

Thanks,

Awatar
Odrzuć
Najlepsza odpowiedź

Here is an example with Sale Order Lines which prints the product name of a certain line:

<para style="terp_default_9">[[ [l for l in o.order_line if 'x' in l.name][0].name ]]</para>

... prints the line name of the first line which contains a 'x'. But there will be a problem if no line is selected.

This code prints all lines containing a 'x':

<section>[[repeatIn([l for l in o.order_line if 'x' in l.name],'line')]]
    <para style="terp_default_1">[[ line.name ]]</para>
</section>
Awatar
Odrzuć
Autor

Hey thanks but sry I didn't seen ur reply and not even gone through it but still thanks... actually i did it with other way

Powiązane posty Odpowiedzi Widoki Czynność
0
paź 24
1737
0
sie 24
1565
0
sty 24
2046
1
lis 23
1766
0
cze 23
2086