Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3920 Lượt xem

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!!!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>

Ảnh đại diện
Huỷ bỏ
Tác giả

thanks a lot it works for me

Tác giả

thanks a lot it works for me

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 10 23
7284
2
thg 3 15
7066
1
thg 9 24
2125
0
thg 11 23
1160
2
thg 12 23
59786