跳至內容
選單
此問題已被標幟
1 回覆
3875 瀏覽次數

hi  iused odoo 8.0 i created custom invoice report in odoo

 i access payment_term.id and payment_term.note

but i want to access all values of payment term means payment_term.line with all values in custom invoice report

i add four lines for
 

Computation  Amount To Pay  Number of Days  Day of the Month

Percent          0.250000             15                          0

Percent          0.250000             15                          0

Percent          0.250000             15                          0

Percent          0.250000             15                           0

now i want to acccess all values of payment term in custom invoice reports

same as invoice line and all fields of invoice

how can i get ,

Thanks in advanced!!!

頭像
捨棄
最佳答案

Try like this:

                    <t t-foreach="o.payment_term.line_ids" t-as="pl">
<span t-field="pl.value"/>
<span t-field="pl.value_amount"/>
<span t-field="pl.days"/>
<span t-field="pl.days2"/>
<br/>
</t>

頭像
捨棄
作者

thanks a lot it works for me

作者

thanks a lot it works for me

相關帖文 回覆 瀏覽次數 活動
3
10月 23
7259
2
3月 15
7053
1
9月 24
2086
0
11月 23
1125
2
12月 23
59713